diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-17 23:53:27 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-17 23:53:27 +1100 |
| commit | ea06613d446b18057212fc99638201afa22b61fd (patch) | |
| tree | c7d2c69e3fb37c831fefc0f850e1f69b51f03918 /inc/display.php | |
| parent | fe9a8a1074c7a8aba4a92086a95c92bb20e60af3 (diff) | |
Fix [ and ] brackets and whitespace trimming
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php index 086171c4..c6570002 100644 --- a/inc/display.php +++ b/inc/display.php @@ -45,9 +45,11 @@ if(!isset($config['boards'])) return Array('top'=>'','bottom'=>''); $body = doBoardListPart($config['boards'], $mod?'?/':$config['root']); - if(!preg_match('/\]$/', $body)) + if(!preg_match('/\] $/', $body)) $body = '[' . $body . ']'; + $body = trim($body); + return Array( 'top' => '<div class="boardlist">' . $body . '</div>', 'bottom' => '<div class="boardlist bottom">' . $body . '</div>' |
