forked from Cavemanon/cavepaintings
dedupe some referer handling
This commit is contained in:
@@ -182,10 +182,7 @@ class BulkActions extends Extension
|
||||
}
|
||||
|
||||
$page->set_mode(PageMode::REDIRECT);
|
||||
if (!isset($_SERVER['HTTP_REFERER'])) {
|
||||
$_SERVER['HTTP_REFERER'] = make_link();
|
||||
}
|
||||
$page->set_redirect($_SERVER['HTTP_REFERER']);
|
||||
$page->set_redirect(referer_or(make_link()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user