aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-22 23:05:21 -0800
committerfriendica <info@friendica.com>2015-02-22 23:05:21 -0800
commit18f5e269ce88eb569c0ff6ae8da0990a8b255570 (patch)
treec191bf7d1f3f4f674b7cc81d796c443577ab4f07 /index.php
parent1383915f865a26fe06c959d155f118b5934b3de7 (diff)
downloadvolse-hubzilla-18f5e269ce88eb569c0ff6ae8da0990a8b255570.tar.gz
volse-hubzilla-18f5e269ce88eb569c0ff6ae8da0990a8b255570.tar.bz2
volse-hubzilla-18f5e269ce88eb569c0ff6ae8da0990a8b255570.zip
fix 404 pages for derivative themes by pretending we've found a module called '404'. This way all the correct theme initialisation stuff will happen.
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;
}
}