// Context part 5

This commit is contained in:
tDidierjean
2011-07-13 15:24:38 +00:00
parent cb3f2f7b52
commit b09c76f5b4
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)