Bugfix: Theme functions hadn't been executed anymore

This commit is contained in:
Michael 2019-01-18 20:08:35 +00:00
parent 3b5f55d3c6
commit 2a0e18c7dd
2 changed files with 6 additions and 18 deletions

View file

@ -1720,6 +1720,12 @@ class App
$content = '';
// Load current theme info after module has been executed as theme could have been set in module
$theme_info_file = 'view/theme/' . $this->getCurrentTheme() . '/theme.php';
if (file_exists($theme_info_file)) {
require_once $theme_info_file;
}
// Call module functions
if ($this->module_loaded) {
$this->page['page_title'] = $this->module;
@ -1760,12 +1766,6 @@ class App
}
}
// Load current theme info after module has been executed as theme could have been set in module
$theme_info_file = 'view/theme/' . $this->getCurrentTheme() . '/theme.php';
if (file_exists($theme_info_file)) {
require_once $theme_info_file;
}
// initialise content region
if ($this->getMode()->isNormal()) {
Core\Addon::callHooks('page_content_top', $this->page['content']);