mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:35:19 +00:00
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:
parent
1383915f86
commit
18f5e269ce
1 changed files with 3 additions and 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue