// 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
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user