Merge pull request #389 from HungryFeline/patch-1
Redirect to default page if referer isn't set
This commit is contained in:
commit
2d25d43ecf
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ class MassTagger extends Extension {
|
|||
}
|
||||
|
||||
$page->set_mode("redirect");
|
||||
if(!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = make_link();
|
||||
$page->set_redirect($_SERVER['HTTP_REFERER']);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue