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.

This commit is contained in:
friendica 2015-02-22 23:05:21 -08:00
parent 1383915f86
commit 18f5e269ce

View file

@ -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;
}
}