diff options
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |