mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Bugfix: Theme functions hadn't been executed anymore
This commit is contained in:
parent
3b5f55d3c6
commit
2a0e18c7dd
2 changed files with 6 additions and 18 deletions
12
src/App.php
12
src/App.php
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue