diff --git a/bl-kernel/boot/admin.php b/bl-kernel/boot/admin.php index cdb20f01..9e114c58 100644 --- a/bl-kernel/boot/admin.php +++ b/bl-kernel/boot/admin.php @@ -1,9 +1,10 @@ notFound() || !$login->isLogged() || ($url->slug()==='login') ) { $layout['controller'] = 'login'; - $layout['view'] = 'login'; - $layout['template'] = 'login.php'; + $layout['view'] = 'login'; + $layout['template'] = 'login.php'; // Generate the tokenCSRF for the user not logged, when the user log-in the token will be change. $security->generateTokenCSRF(); @@ -83,7 +84,7 @@ else // Load controller. if (Sanitize::pathFile(PATH_ADMIN_CONTROLLERS, $layout['controller'].'.php')) { include(PATH_ADMIN_CONTROLLERS.$layout['controller'].'.php'); - } else if(!empty($layout['plugin']) && method_exists($layout['plugin'], 'adminController')) { + } elseif ($layout['plugin'] && method_exists($layout['plugin'], 'adminController')) { $layout['plugin']->adminController(); } diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index 12236713..070a9f8a 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -121,7 +121,7 @@ if (file_exists(PATH_KERNEL.'bludit.pro.php')) { $pages = new Pages(); $users = new Users(); $tags = new Tags(); -$categories = new Categories(); +$categories = new Categories(); $site = new Site(); $url = new Url(); $security = new Security();