Clean: Make boardlist bracket wrapping optional

This commit is contained in:
Michael Foster 2013-08-11 21:06:13 +10:00
parent 7d1acd4a05
commit 4bce3d7584
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ function createBoardlist($mod=false) {
if (!isset($config['boards'])) return array('top'=>'','bottom'=>'');
$body = doBoardListPart($config['boards'], $mod?'?/':$config['root']);
if (!preg_match('/\] $/', $body) && $config['boardlist_wrap_bracket'])
if ($config['boardlist_wrap_bracket'] && !preg_match('/\] $/', $body))
$body = '[' . $body . ']';
$body = trim($body);