From c7aa92f3b3ddb3bc18247f5b2c61fbf6b36185cf Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 15 May 2013 11:31:55 +0200 Subject: [PATCH] [-] BO : Fix "The controller adminnotound is missing or invalid." error when no controller get variable --- .../default/template/controllers/not_found/content.tpl | 2 ++ classes/Dispatcher.php | 7 +++++-- classes/controller/AdminController.php | 2 +- controllers/admin/AdminNotFoundController.php | 3 +-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/not_found/content.tpl b/admin-dev/themes/default/template/controllers/not_found/content.tpl index 67933528c..cd836c0ea 100644 --- a/admin-dev/themes/default/template/controllers/not_found/content.tpl +++ b/admin-dev/themes/default/template/controllers/not_found/content.tpl @@ -22,7 +22,9 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} +{if isset($controller) && !empty($controller) && $controller != 'adminnotfound'}

{l s='The controller %s is missing or invalid.' sprintf=$controller}

+{/if}