Don't cache ghost-ban announcement pages

This commit is contained in:
Shish 2019-11-28 21:46:34 +00:00
parent efdc903263
commit a1e67e97b7

View file

@ -153,12 +153,14 @@ class IPBan extends Extension
$b = new Block(null, $msg, "main", 0);
$b->is_content = false;
$page->add_block($b);
$page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/");
$event->user->class = $_shm_user_classes["ghost"];
} elseif ($row["mode"] == "anon-ghost") {
if ($event->user->is_anonymous()) {
$b = new Block(null, $msg, "main", 0);
$b->is_content = false;
$page->add_block($b);
$page->add_cookie("nocache", "Ghost Banned", time()+60*60*2, "/");
$event->user->class = $_shm_user_classes["ghost"];
}
} else {