From 1ab93cf856949fe77cf328f1c8fa7505015c8acc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 19 Dec 2014 07:49:24 +0000 Subject: [PATCH] make sure admin tree displays following toplevel order: admin, user, groups, apps by returning admin hooks first, despite alphabetical sorting of apps --- admin/inc/class.admin_ui.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index 81536a9ff6..c7a2cf84b9 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -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; }