[-] BO : Fix "The controller adminnotound is missing or invalid." error when no controller get variable

This commit is contained in:
gRoussac
2013-05-15 11:31:55 +02:00
parent 6796738cfd
commit c7aa92f3b3
4 changed files with 9 additions and 5 deletions
@@ -39,8 +39,7 @@ class AdminNotFoundControllerCore extends AdminController
public function initContent()
{
$this->errors[] = Tools::displayError('Controller not found');
$tpl_vars['controller'] = Tools::getvalue('controller');
$tpl_vars['controller'] = Tools::getvalue('controllerUri', Tools::getvalue('controller'));
$this->context->smarty->assign($tpl_vars);
parent::initContent();
}