mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 07:50:23 +01:00
Clean: Make boardlist bracket wrapping optional
This commit is contained in:
parent
51d1d4eb5c
commit
172effc889
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user