From 3aa1305dab1cd651465547352ac74b8a876656c7 Mon Sep 17 00:00:00 2001 From: ctrlcctrlv Date: Thu, 8 Aug 2013 18:43:24 +0000 Subject: [PATCH] Make boardlist bracket wrapping optional --- inc/config.php | 3 +++ inc/display.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index cddbf074..4c37e969 100644 --- a/inc/config.php +++ b/inc/config.php @@ -715,6 +715,9 @@ // ) // ); + // 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. $config['minify_html'] = true; diff --git a/inc/display.php b/inc/display.php index 18eeb1f6..8c7252ec 100644 --- a/inc/display.php +++ b/inc/display.php @@ -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);