// fix retrocompatibility in Tab.php related to _GET tab/controller
This commit is contained in:
1 parent
118a9b0304
commit
5532098c90
1 file changed
+5
-1
+5
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user