diff --git a/src/www/index.php b/src/www/index.php index 46b057957..fdcc15441 100644 --- a/src/www/index.php +++ b/src/www/index.php @@ -34,7 +34,6 @@ ini_set('output_buffering', 'true'); // Start buffering with a cache size of 100000 ob_start(null, "1000"); - // Load Essential Includes require_once('guiconfig.inc'); @@ -65,11 +64,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $widgetItem['display_name'] = ucwords(str_replace("_", " ", $widgetItem['name'])); $widgetItem['filename'] = $php_file; $widgetItem['state'] = "none"; - $widgetItem['sortKey'] = $widgetItem['name'] == 'system_information' ? "" : $widgetItem['name']; + /// default sort order + $widgetItem['sortKey'] = $widgetItem['name'] == 'system_information' ? "00000000" : "99999999"; foreach ($widgetSeqParts as $seqPart) { $tmp = explode(':', $seqPart); if (count($tmp) == 3 && explode('-', $tmp[0])[0] == $widgetItem['name']) { $widgetItem['state'] = $tmp[2]; + $widgetItem['sortKey'] = $tmp[1]; } } $widgetCollection[] = $widgetItem; @@ -94,7 +95,6 @@ foreach (glob("/usr/local/www/widgets/include/*.inc") as $filename) { include("head.inc"); ?> -
@@ -113,7 +113,6 @@ include("fbegin.inc");?>