From 2696e12bd643eaca85b9780b1c7d8ec1377df0fb Mon Sep 17 00:00:00 2001 From: latham <latham@ispconfig3> Date: Fri, 04 Nov 2011 09:57:16 -0400 Subject: [PATCH] This will sort the modules by alpha before the dashboard is pushed to the front. This patch keeps the menu tabs stable instead of different on each user. Logging in as an admin, reseller, and user would show the tabs in different order each time do to user creation. --- interface/web/nav.php | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/interface/web/nav.php b/interface/web/nav.php index 0c57adb..423f57e 100644 --- a/interface/web/nav.php +++ b/interface/web/nav.php @@ -45,6 +45,7 @@ /* * If the dashboard is in the list of modules it always has to be the first! */ + asort($modules); if (in_array('dashboard', $modules)) { $key = array_search('dashboard', $modules); unset($modules[$key]); -- Gitblit v1.9.1