making sure the apps for ACL Management are sorted in Group-view

This commit is contained in:
Klaus Leithoff 2009-05-13 13:52:54 +00:00
parent 95168d28bb
commit cf5fe6a101

View File

@ -1192,18 +1192,24 @@
} }
reset($GLOBALS['egw_info']['apps']); reset($GLOBALS['egw_info']['apps']);
$sorted_apps = $GLOBALS['egw_info']['apps']; $sorted_apps = $GLOBALS['egw_info']['apps'];
@asort($sorted_apps); foreach ($sorted_apps as $key => $values) {
@reset($sorted_apps); $sortarray[$key] = strtolower($values['title']);
while ($permission = each($sorted_apps)) }
unset($key); unset($values);
@asort($sortarray);
@reset($sortarray);
foreach ($sortarray as $key => $value)
{ {
if ($permission[1]['enabled'] && $permission[1]['status'] != 3) if ($sorted_apps[$key]['enabled'] && $sorted_apps[$key]['status'] != 3)
{ {
$perm_display[] = Array( $perm_display[] = Array(
$permission[0], $key,
$permission[1]['title'] $sorted_apps[$key]['title']
); );
} }
} }
unset($key); unset($value);
$perm_html = '<td width="35%">'.lang('Application').'</td><td width="15%">'.lang('enabled').' / '.lang('ACL').'</td>'; $perm_html = '<td width="35%">'.lang('Application').'</td><td width="15%">'.lang('enabled').' / '.lang('ACL').'</td>';
$perm_html = '<tr class="th">'. $perm_html = '<tr class="th">'.