forked from GithubBackups/vichan
Fix bans page on Firefox
This commit is contained in:
parent
840c42adc4
commit
a8effc870d
@ -1032,7 +1032,7 @@ function mod_bans_json() {
|
|||||||
error($config['error']['noaccess']);
|
error($config['error']['noaccess']);
|
||||||
|
|
||||||
// Compress the json for faster loads
|
// Compress the json for faster loads
|
||||||
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
|
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
|
||||||
|
|
||||||
Bans::stream_json(false, !hasPermission($config['mod']['show_ip']), !hasPermission($config['mod']['view_banstaff']), $mod['boards']);
|
Bans::stream_json(false, !hasPermission($config['mod']['show_ip']), !hasPermission($config['mod']['view_banstaff']), $mod['boards']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user