1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 15:40:12 +01:00

Make boardlist bracket wrapping optional

This commit is contained in:
ctrlcctrlv 2013-08-08 18:43:24 +00:00
parent 73f53d3529
commit 3aa1305dab
2 changed files with 4 additions and 1 deletions

View File

@ -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. // Automatically remove unnecessary whitespace when compiling HTML files from templates.
$config['minify_html'] = true; $config['minify_html'] = true;

View File

@ -46,7 +46,7 @@ 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)) if (!preg_match('/\] $/', $body) && $config['boardlist_wrap_bracket'])
$body = '[' . $body . ']'; $body = '[' . $body . ']';
$body = trim($body); $body = trim($body);