From 4bce3d75842c76934c112c11ebdfbc8705e40c8f Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 11 Aug 2013 21:06:13 +1000 Subject: [PATCH] Clean: Make boardlist bracket wrapping optional --- inc/config.php | 6 +++--- inc/display.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/config.php b/inc/config.php index 66fae0f4..fae7d2a5 100644 --- a/inc/config.php +++ b/inc/config.php @@ -696,6 +696,9 @@ // array('status' => 'http://status.example.org/') // ); + // Whether or not to put brackets around the whole board list + $config['boardlist_wrap_bracket'] = false; + // Board categories. Only used in the "Categories" theme. // $config['categories'] = array( // 'Group Name' => array('a', 'b', 'c'), @@ -710,9 +713,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. $config['minify_html'] = true; diff --git a/inc/display.php b/inc/display.php index 893b7ce5..99228fc3 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) && $config['boardlist_wrap_bracket']) + if ($config['boardlist_wrap_bracket'] && !preg_match('/\] $/', $body)) $body = '[' . $body . ']'; $body = trim($body);