diff options
author | friendica <info@friendica.com> | 2015-02-22 23:05:21 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-22 23:05:21 -0800 |
commit | 18f5e269ce88eb569c0ff6ae8da0990a8b255570 (patch) | |
tree | c191bf7d1f3f4f674b7cc81d796c443577ab4f07 | |
parent | 1383915f865a26fe06c959d155f118b5934b3de7 (diff) | |
download | volse-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.
-rwxr-xr-x | index.php | 3 |
1 files changed, 3 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; } } |