aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4e39ee1ac..716c24fe6 100755
--- a/index.php
+++ b/index.php
@@ -240,6 +240,9 @@ if(strlen($a->module)) {
$a->page['content'] = replace_macros($tpl, array(
'$message' => t('Page not found.' )
));
+ // pretend this is a module so it will initialise the theme.
+ $a->module = '404';
+ $a->module_loaded = true;
}
}
@@ -393,6 +396,9 @@ if(stristr( implode("",$_SESSION['sysmsg']), t('Permission denied'))) {
call_hooks('page_end', $a->page['content']);
+if(! $a->install)
+ check_cron_broken();
+
construct_page($a);
session_write_close();