// Context part 5

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7624 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-13 15:24:38 +00:00
parent 39e2b09219
commit e5c68ba9ae
89 changed files with 417 additions and 441 deletions
+8 -2
View File
@@ -235,9 +235,15 @@ function recursiveTab($id_tab)
recursiveTab($adminTab['id_parent']);
}
/**
* Returns a new Tab object
*
* @param string $tab class name
* @return mixed(AdminTab, bool) tab object or false if failed
*/
function checkingTab($tab)
{
global $adminObj, $cookie;
global $cookie;
$tab = trim($tab);
if (!Validate::isTabName($tab))
@@ -268,7 +274,7 @@ function checkingTab($tab)
echo $adminObj->displayErrors();
return false;
}
return $row['id_tab'];
return $adminObj;
}
function checkTabRights($id_tab)