diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-05-15 21:11:08 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-05-15 21:11:08 +0000 |
commit | 070685222c011f3fabcb93cbb7cb4d18f42cb928 (patch) | |
tree | d79aae799f5dca8e87cc4ea6cd1c63c61b543897 /en/downloads/dl.php | |
parent | 605e5c693822a951839765ad50de7c6f2c71d9d4 (diff) | |
download | www-070685222c011f3fabcb93cbb7cb4d18f42cb928.tar www-070685222c011f3fabcb93cbb7cb4d18f42cb928.tar.gz www-070685222c011f3fabcb93cbb7cb4d18f42cb928.tar.bz2 www-070685222c011f3fabcb93cbb7cb4d18f42cb928.tar.xz www-070685222c011f3fabcb93cbb7cb4d18f42cb928.zip |
alternative mirrors download link fix
Diffstat (limited to 'en/downloads/dl.php')
-rw-r--r-- | en/downloads/dl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/en/downloads/dl.php b/en/downloads/dl.php index fbb9d324a..57d7175ee 100644 --- a/en/downloads/dl.php +++ b/en/downloads/dl.php @@ -61,7 +61,7 @@ foreach ($g_mirrors as $country => $mirs): $g_mirs2[$countries[$country]][$mir['city']][] = $mir['url']; endforeach; endforeach; -//print_r($g_mirs2); + $g_mirrors = $g_mirs2; ksort($g_mirrors); @@ -70,7 +70,7 @@ foreach ($g_mirrors as $country => $cities): $mirs = array(); foreach ($mirrors as $m) { $pm = parse_url($m); - $alt_dl_link = sprintf('%s%s', $m, $product_dl_link); + $alt_dl_link = sprintf('%s/%s', $m, $product_dl_link); $mirs[] = sprintf('%s://<a href="%s" rel="nofollow">%s</a>', $pm['scheme'], $alt_dl_link, $pm['host']); } |