1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 02:16:03 +01:00

Add [ and ] in the boardlist when non existant

This commit is contained in:
Savetheinternet 2011-03-17 23:45:14 +11:00
parent 0156daaf55
commit 08c3edecc1

View File

@ -41,6 +41,8 @@
if(!isset($config['boards'])) return Array('top'=>'','bottom'=>'');
$body = doBoardListPart($config['boards'], $mod?'?/':$config['root']);
if(!preg_match('/\]$/', $body))
$body = '[' . $body . ']';
return Array(
'top' => '<div class="boardlist">' . $body . '</div>',