mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
ok, the benefit seems to be not that huge. :/
git-svn-id: file:///svn/phpbb/trunk@7194 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e961c34bff
commit
018f42131e
1 changed files with 4 additions and 2 deletions
|
@ -1091,7 +1091,9 @@ class auth_admin extends auth
|
|||
'CAT_NAME' => $user->lang['permission_cat'][$cat])
|
||||
);
|
||||
|
||||
// Sort array
|
||||
/* Sort permissions by name (more naturaly and user friendly than sorting by a primary key)
|
||||
* Commented out due to it's memory consumption and time needed
|
||||
*
|
||||
$key_array = array_intersect(array_keys($user->lang), array_map(create_function('$a', 'return "acl_" . $a;'), array_keys($cat_array['permissions'])));
|
||||
$values_array = $cat_array['permissions'];
|
||||
|
||||
|
@ -1103,7 +1105,7 @@ class auth_admin extends auth
|
|||
$cat_array['permissions'][$key] = $values_array[$key];
|
||||
}
|
||||
unset($key_array, $values_array);
|
||||
|
||||
*/
|
||||
@reset($cat_array['permissions']);
|
||||
while (list($permission, $allowed) = each($cat_array['permissions']))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue