diff --git a/controllers/admin/AdminNotFoundController.php b/controllers/admin/AdminNotFoundController.php index d26e92827..267843ea4 100644 --- a/controllers/admin/AdminNotFoundController.php +++ b/controllers/admin/AdminNotFoundController.php @@ -26,6 +26,13 @@ class AdminNotFoundControllerCore extends AdminController { + + public function __construct() + { + $this->bootstrap = true; + parent::__construct(); + } + public function checkAccess() { return true; @@ -38,6 +45,7 @@ class AdminNotFoundControllerCore extends AdminController public function initContent() { + $this->errors[] = Tools::displayError('Controller not found'); $tpl_vars['controller'] = Tools::getvalue('controllerUri', Tools::getvalue('controller')); $this->context->smarty->assign($tpl_vars);