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:24 +00:00
parent 7f63eb36af
commit 1ab93cf856

View File

@ -495,6 +495,8 @@ class admin_ui
{
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;
}