Display banned post contents if reason does not contain cp

This commit is contained in:
Michael Walker 2016-02-11 15:21:54 +00:00
parent cc62a579bc
commit 9f00630b40
2 changed files with 10 additions and 2 deletions

View file

@ -25,7 +25,7 @@
public static function gen_json($settings) {
ob_start();
Bans::stream_json(false, true, true, array(), true);
Bans::stream_json(false, true, true, array(), array("/\bcp\b/i"));
$out = ob_get_contents();
ob_end_clean();
return $out;