Merge pull request #4951 from MrPetovan/bug/4946-move-current-theme-to-app

Move current_theme() to App
This commit is contained in:
Michael Vogel
2018-04-29 19:11:49 +02:00
committed by GitHub
11 changed files with 284 additions and 294 deletions

View File

@@ -152,7 +152,7 @@ class Profile
$a->set_template_engine(); // reset the template engine to the default in case the user's theme doesn't specify one
$theme_info_file = 'view/theme/' . current_theme() . '/theme.php';
$theme_info_file = 'view/theme/' . $a->getCurrentTheme() . '/theme.php';
if (file_exists($theme_info_file)) {
require_once $theme_info_file;
}