Make boardlist bracket wrapping optional

This commit is contained in:
ctrlcctrlv 2013-08-08 18:43:24 +00:00 committed by Michael Foster
parent c672b700b0
commit 7d1acd4a05
2 changed files with 4 additions and 1 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))
if (!preg_match('/\] $/', $body) && $config['boardlist_wrap_bracket'])
$body = '[' . $body . ']';
$body = trim($body);