// fix retrocompatibility in Tab.php related to _GET tab/controller

This commit is contained in:
mMarinetti committed 2012-02-03 13:49:01 +00:00
1 parent 118a9b0304
commit 5532098c90
1 file changed
+5 -1
+5 -1
View File
@@ -139,7 +139,11 @@ class TabCore extends ObjectModel
*/ */
public static function getCurrentTabId() 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;
} }
/** /**