From 402874d24bd97c3cb89b525c6c1244f799697c92 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Fri, 3 Feb 2012 13:49:01 +0000 Subject: [PATCH] // fix retrocompatibility in Tab.php related to _GET tab/controller git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12973 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Tab.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/Tab.php b/classes/Tab.php index db529cf7b..14b8a49f0 100644 --- a/classes/Tab.php +++ b/classes/Tab.php @@ -139,7 +139,11 @@ class TabCore extends ObjectModel */ public static function getCurrentTabId() { - return Tab::getIdFromClassName(Tools::getValue('tab')); + $id_tab = Tab::getIdFromClassName(Tools::getValue('controller')); + // retro-compatibility 1.4/1.5 + if (empty ($id_tab)) + $id_tab = Tab::getIdFromClassName(Tools::getValue('tab')); + return $id_tab; } /**