From d8ae474efc118b21adea0550571fab3a1c4d0dfe Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 14 Jan 2009 12:18:49 -0800 Subject: [PATCH] note section name in block IDs --- themes/danbooru/layout.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index 8d858d32..b3320201 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -157,15 +157,16 @@ EOD; function block_to_html($block, $hidable=false) { $h = $block->header; + $s = $block->section; $b = $block->body; $html = ""; if($hidable) { - $i = str_replace(' ', '_', $h); + $i = str_replace(' ', '_', $h.$s); if(!is_null($h)) $html .= "\n

$h

\n"; if(!is_null($b)) $html .= "
$b
\n"; } else { - $i = str_replace(' ', '_', $h); + $i = str_replace(' ', '_', $h.$s); if(!is_null($h)) $html .= "\n

$h

\n"; if(!is_null($b)) $html .= "
$b
\n"; }