1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

Fix [ and ] brackets and whitespace trimming

This commit is contained in:
Savetheinternet 2011-03-17 23:53:27 +11:00
parent fe9a8a1074
commit ea06613d44

View File

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