Commit 35a9fd1e authored by Kjartan's avatar Kjartan

- specifying an invalid module will redirect you to the index page instead of

  showing a blank page.
parent 1fe8d6b1
......@@ -3,10 +3,13 @@
include_once "includes/common.inc";
page_header();
module_invoke($mod, "page");
page_footer();
if (module_hook($mod, "page")) {
page_header();
module_invoke($mod, "page");
page_footer();
}
else {
header("Location: index.php");
}
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment