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

showing a blank page.
4.0.x
Kjartan Mannes 2002-03-05 22:53:51 +00:00
parent 1fe8d6b195
commit 35a9fd1e35
1 changed files with 8 additions and 5 deletions

View File

@ -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");
}
?>