Rework the admin panel #34

Merged
kazhnuz merged 39 commits from feat/new-admin into koblog 2025-01-19 00:29:43 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit e073dab335 - Show all commits

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');