From d809baf7234a133234f6833e054780b6f4f90cf4 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 2 May 2013 17:25:48 +0000 Subject: clearer display of available protocols per mirror --- en/downloads/get/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'en/downloads') diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index 465f1bc34..3884ee20c 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -94,12 +94,13 @@ try { $s = array(); foreach ($cities as $city => $mirrors2) { $mirs = array(); + rsort($mirrors2); foreach ($mirrors2 as $m) { $pm = parse_url($m); $alt_dl_link = str_replace('$MIRROR', $m, $download_tmpl); $mirs[] = sprintf( - '%s://%s', - $pm['scheme'], $alt_dl_link, $pm['host'] + '%s %s', + $alt_dl_link, strtoupper($pm['scheme']), $pm['host'] ); } $s[] = sprintf('%s%s', rewrite_city($city), implode(', ', $mirs)); @@ -217,7 +218,6 @@ if (!isset($_ENV['APP_MODE']) || $_ENV['APP_MODE'] == 'prod') {
-
-- cgit v1.2.1