Fix boardlist bracketing issue
This commit is contained in:
parent
efcec13439
commit
98fa92f684
@ -732,9 +732,6 @@
|
|||||||
// )
|
// )
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// Whether or not to put brackets around the whole board list
|
|
||||||
$config['boardlist_wrap_bracket'] = false;
|
|
||||||
|
|
||||||
// Automatically remove unnecessary whitespace when compiling HTML files from templates.
|
// Automatically remove unnecessary whitespace when compiling HTML files from templates.
|
||||||
$config['minify_html'] = true;
|
$config['minify_html'] = true;
|
||||||
|
|
||||||
|
@ -46,8 +46,6 @@ function createBoardlist($mod=false) {
|
|||||||
if (!isset($config['boards'])) return array('top'=>'','bottom'=>'');
|
if (!isset($config['boards'])) return array('top'=>'','bottom'=>'');
|
||||||
|
|
||||||
$body = doBoardListPart($config['boards'], $mod?'?/':$config['root']);
|
$body = doBoardListPart($config['boards'], $mod?'?/':$config['root']);
|
||||||
if (!preg_match('/\] $/', $body) && $config['boardlist_wrap_bracket'])
|
|
||||||
$body = '[' . $body . ']';
|
|
||||||
|
|
||||||
$body = trim($body);
|
$body = trim($body);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user