From 2696e12bd643eaca85b9780b1c7d8ec1377df0fb Mon Sep 17 00:00:00 2001 From: latham Date: Fri, 4 Nov 2011 13:57:16 +0000 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 file changed, 1 insertion(+) diff --git a/interface/web/nav.php b/interface/web/nav.php index 0c57adbd9..423f57ea1 100644 --- a/interface/web/nav.php +++ b/interface/web/nav.php @@ -45,6 +45,7 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') { /* * 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]); -- GitLab