Ver Fonte

Sorted services array

Without, one going offline will make the order jump around
Henry Whitaker há 6 anos atrás
pai
commit
92844e9589
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      api/functions/homepage-connect-functions.php

+ 1 - 0
api/functions/homepage-connect-functions.php

@@ -2574,6 +2574,7 @@ function getMonitorr()
 					$statuses[$service]['image'] = $url . '/assets/img/' . $image;
 				}
 
+				ksort($statuses);
 				$api['services'] = $statuses;
 				$api['options'] = [
 					'title' => $GLOBALS['monitorrHeader'],