From e073dab3359d24b6143ddcd6e2039746d7702c7b Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 18 Jan 2025 19:45:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(admin):=20make=20feature=20poki?= =?UTF-8?q?ng=20work=20everywhere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bl-kernel/admin/controllers/themes.php | 2 -- bl-kernel/boot/admin.php | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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');