diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-02-22 00:08:00 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-02-22 00:08:00 +0000 |
commit | 6226bdb70faa0fcb594ea252b3e07aeed8b59df8 (patch) | |
tree | d1f7a40da89942d44b3f90d0b5231e7961a2a4e7 /en | |
parent | 7c4e82372728d8ea882e8947e1cea64ee7d0d637 (diff) | |
download | www-6226bdb70faa0fcb594ea252b3e07aeed8b59df8.tar www-6226bdb70faa0fcb594ea252b3e07aeed8b59df8.tar.gz www-6226bdb70faa0fcb594ea252b3e07aeed8b59df8.tar.bz2 www-6226bdb70faa0fcb594ea252b3e07aeed8b59df8.tar.xz www-6226bdb70faa0fcb594ea252b3e07aeed8b59df8.zip |
prepare for mirrors list update
Diffstat (limited to 'en')
-rw-r--r-- | en/downloads/get/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index edabd31ff..5c1a11e6c 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -71,6 +71,9 @@ try { $g_mirs2 = array(); foreach ($alt_mirrors as $country => $mirs): + if (substr($country, 0, 3) == '_C:') + continue; + foreach ($mirs as $mir): $g_mirs2[$countries[$country]][$mir['city']][] = $mir['url']; endforeach; @@ -80,6 +83,7 @@ try { $alternative_mirrors = ''; foreach ($g_mirs2 as $country => $cities): + $s = array(); foreach ($cities as $city => $mirrors2) { $mirs = array(); foreach ($mirrors2 as $m) { @@ -88,8 +92,9 @@ try { $mirs[] = sprintf('%s://<a href="%s" rel="nofollow">%s</a>', $pm['scheme'], $alt_dl_link, $pm['host']); } - $alternative_mirrors .= sprintf('<tr><td nowrap>%s</td><td>%s</td><td>%s</td></tr>', $country, $city, implode(', ', $mirs)); + $s[] = sprintf('<td>%s</td><td>%s</td>', $city, implode(', ', $mirs)); } + $alternative_mirrors .= sprintf('<tr><td rowspan="%d">%s</td>%s</tr>', count($cities), $country, implode('</tr><tr>', $s)); endforeach; $dl2_mirror_alt = sprintf($_t['dl_mirror_loc'], |