summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorctrlcctrlv <wizardchan@hush.com>2013-08-08 18:43:24 +0000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-11 21:04:45 +1000
commit7d1acd4a0580449cf16da944535f0d268ee74275 (patch)
tree7e7581b3e615c5a043cc05f9c3e8931aa415d9b4 /inc
parentc672b700b0bd2dcfa91ed0083014d470bdc3e34d (diff)
Make boardlist bracket wrapping optional
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php3
-rw-r--r--inc/display.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index ef2ba4ac..66fae0f4 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -710,6 +710,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 97b8c744..893b7ce5 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);