make sure admin tree displays following toplevel order: admin, user, groups, apps by returning admin hooks first, despite alphabetical sorting of apps

This commit is contained in:
Ralf Becker 2014-12-19 07:49:04 +00:00
parent 9cc130e0e7
commit ab57cbefad

View File

@ -495,6 +495,8 @@ class admin_ui
{ {
return strcasecmp(lang($a), lang($b)); return strcasecmp(lang($a), lang($b));
}); });
// make sure admin is first
self::$hook_data = array_merge(array('admin' => self::$hook_data['admin']), self::$hook_data);
return self::$hook_data; return self::$hook_data;
} }