Browse Source

Fix [ and ] brackets and whitespace trimming

pull/40/head
Savetheinternet 13 years ago
parent
commit
ea06613d44
  1. 4
      inc/display.php

4
inc/display.php

@ -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>'

Loading…
Cancel
Save