diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-16 18:34:17 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-16 18:34:17 -0500 |
commit | ee7d4b084572bc5dff846427a3df28a8ae754241 (patch) | |
tree | ad671327418370ea90c84601d98e414fe1e15a20 /src/usr/local/www/index.php | |
parent | 0cc4b85f9594916a99dc713d413558396a868266 (diff) | |
download | pfsense-ee7d4b084572bc5dff846427a3df28a8ae754241.zip pfsense-ee7d4b084572bc5dff846427a3df28a8ae754241.tar.gz |
Final Fixd #5774
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r-- | src/usr/local/www/index.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index b86c1d1..7c4c0f7 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -330,11 +330,9 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard"); // Build the Available Widgets table using a sorted copy of the $widgets array // Can't just ksort because the "Firewall Logs" widget has a key of "logs" $available = $widgets; -function widgetcompare($w1, $w2) { - return ($w1['name'] < $w2['name']) ? -1:1; -} - -//usort($available, 'widgetcompare'); +$values = array_values($available); +$keys = array_keys($available); +array_multisort($values, SORT_ASC, $keys, SORT_ASC, $available); foreach ($available as $widgetname => $widgetconfig): if ($widgetconfig['display'] == 'none'): |