From 51e962195c66e2d02866f4c5014ae6777278f30e Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Thu, 7 Nov 2013 17:15:40 +0100 Subject: [PATCH] // This Controller needs a toolbar and a title --- controllers/admin/AdminNotFoundController.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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);