Commit 2696e12b authored by latham's avatar latham

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
......@@ -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]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment