function adminGetMenuMode () {
// Set the global mode as the mode for all admins
$mode = getConfig('admin_menu');
- $ADMIN = $mode;
+ $adminMode = $mode;
// Get admin id
$adminId = getCurrentAdminId();
// Check individual settings of current admin
if (isset($GLOBALS['cache_array']['admin']['la_mode'][$adminId])) {
// Load from cache
- $ADMIN = $GLOBALS['cache_array']['admin']['la_mode'][$adminId];
+ $adminMode = $GLOBALS['cache_array']['admin']['la_mode'][$adminId];
incrementStatsEntry('cache_hits');
} elseif (isExtensionInstalledAndNewer('admins', '0.6.7')) {
// Load from database when version of 'admins' is enough
array($adminId), __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Load data
- list($ADMIN) = SQL_FETCHROW($result);
+ list($adminMode) = SQL_FETCHROW($result);
}
// Free memory
}
// Check what the admin wants and set it when it's not the global mode
- if ($ADMIN != 'global') $mode = $ADMIN;
+ if ($adminMode != 'global') $mode = $adminMode;
// Return admin-menu's mode
return $mode;