Merge pull request #389 from HungryFeline/patch-1

Redirect to default page if referer isn't set
This commit is contained in:
Daku 2014-04-04 17:30:19 +01:00
commit 2d25d43ecf

View file

@ -53,6 +53,7 @@ class MassTagger extends Extension {
} }
$page->set_mode("redirect"); $page->set_mode("redirect");
if(!isset($_SERVER['HTTP_REFERER'])) $_SERVER['HTTP_REFERER'] = make_link();
$page->set_redirect($_SERVER['HTTP_REFERER']); $page->set_redirect($_SERVER['HTTP_REFERER']);
} }
} }