aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4e39ee1ac..94d22e415 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;
}
}