Skip to content

Commit 2696e12

Browse files
author
latham
committed
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.
1 parent eb0e120 commit 2696e12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/nav.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
/*
4646
* If the dashboard is in the list of modules it always has to be the first!
4747
*/
48+
asort($modules);
4849
if (in_array('dashboard', $modules)) {
4950
$key = array_search('dashboard', $modules);
5051
unset($modules[$key]);

0 commit comments

Comments
 (0)