added option for showing the mod in ban page.

also fixes issue where the Staff is not shown in ban appeals.
This commit is contained in:
Juan Tamad 2014-09-01 06:30:33 +08:00
parent f7b6693c02
commit 53ada6a5ff
4 changed files with 15 additions and 3 deletions

View file

@ -777,8 +777,8 @@ function checkBan($board = false) {
if (event('check-ban', $board))
return true;
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board);
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board, $config['show_modname']);
foreach ($bans as &$ban) {
if ($ban['expires'] && $ban['expires'] < time()) {