mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
Add [ and ] in the boardlist when non existant
This commit is contained in:
parent
0156daaf55
commit
08c3edecc1
@ -41,6 +41,8 @@
|
||||
if(!isset($config['boards'])) return Array('top'=>'','bottom'=>'');
|
||||
|
||||
$body = doBoardListPart($config['boards'], $mod?'?/':$config['root']);
|
||||
if(!preg_match('/\]$/', $body))
|
||||
$body = '[' . $body . ']';
|
||||
|
||||
return Array(
|
||||
'top' => '<div class="boardlist">' . $body . '</div>',
|
||||
|
Loading…
Reference in New Issue
Block a user