🐛 (admin): make feature poking work everywhere
This commit is contained in:
parent
e26aaa72b9
commit
e073dab335
2 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,5 @@ checkRole(array('admin'));
|
|||
// Main after POST
|
||||
// ============================================================================
|
||||
|
||||
$themes = buildThemes();
|
||||
|
||||
// Title of the page
|
||||
$layout['title'] .= ' - '.$L->g('Themes');
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue