🐛 (admin): make feature poking work everywhere

This commit is contained in:
Kazhnuz 2025-01-18 19:45:32 +01:00
parent e26aaa72b9
commit e073dab335
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,5 @@ checkRole(array('admin'));
// Main after POST
// ============================================================================
$themes = buildThemes();
// Title of the page
$layout['title'] .= ' - '.$L->g('Themes');

View file

@ -82,6 +82,9 @@ else
// Load plugins before the admin area will be load.
Theme::plugins('beforeAdminLoad');
// Build the themes to know informations about them.
$themes = buildThemes();
// Load init.php if the theme has one.
if (Sanitize::pathFile(PATH_ADMIN_THEMES, $site->adminTheme().DS.'init.php')) {
include(PATH_ADMIN_THEMES.$site->adminTheme().DS.'init.php');