diff --git a/bl-kernel/admin/controllers/themes.php b/bl-kernel/admin/controllers/themes.php index cec15eb8..8952ac49 100644 --- a/bl-kernel/admin/controllers/themes.php +++ b/bl-kernel/admin/controllers/themes.php @@ -18,7 +18,5 @@ checkRole(array('admin')); // Main after POST // ============================================================================ -$themes = buildThemes(); - // Title of the page $layout['title'] .= ' - '.$L->g('Themes'); \ No newline at end of file diff --git a/bl-kernel/boot/admin.php b/bl-kernel/boot/admin.php index b2209ba7..81768cc9 100644 --- a/bl-kernel/boot/admin.php +++ b/bl-kernel/boot/admin.php @@ -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');