Skip to content
Snippets Groups Projects
Commit 2696e12b authored by latham's avatar latham
Browse files

This will sort the modules by alpha before the dashboard is pushed to the...

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.
parent eb0e1202
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') { ...@@ -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! * If the dashboard is in the list of modules it always has to be the first!
*/ */
asort($modules);
if (in_array('dashboard', $modules)) { if (in_array('dashboard', $modules)) {
$key = array_search('dashboard', $modules); $key = array_search('dashboard', $modules);
unset($modules[$key]); unset($modules[$key]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment