diff --git a/bl-kernel/admin/themes/booty/index.php b/bl-kernel/admin/themes/booty/index.php index cf34121f..9f0ab96f 100644 --- a/bl-kernel/admin/themes/booty/index.php +++ b/bl-kernel/admin/themes/booty/index.php @@ -80,6 +80,8 @@ adminView(); } else { echo '

'.$L->g('Page not found').'

'; echo '

'.$L->g('Choose a page from the sidebar.').'

'; diff --git a/bl-kernel/boot/admin.php b/bl-kernel/boot/admin.php index 4e67d145..604c32a4 100644 --- a/bl-kernel/boot/admin.php +++ b/bl-kernel/boot/admin.php @@ -63,8 +63,8 @@ else } // Define variables - $ADMIN_CONTROLLER = $layout['controller']; - $ADMIN_VIEW = $layout['view']; + $ADMIN_CONTROLLER = $layout['controller']; + $ADMIN_VIEW = $layout['view']; // Load plugins before the admin area will be load. Theme::plugins('beforeAdminLoad'); @@ -77,6 +77,10 @@ else // Load controller. if (Sanitize::pathFile(PATH_ADMIN_CONTROLLERS, $layout['controller'].'.php')) { include(PATH_ADMIN_CONTROLLERS.$layout['controller'].'.php'); + } else if (($plugin = getPlugin($layout['controller'])) !== false) { + if (method_exists($plugin, "adminController") && method_exists($plugin, "adminView")) { + $plugin->adminController(); + } } // Load view and theme.