aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-05-20 12:41:24 +0000
committerRomain d'Alverny <rda@mageia.org>2011-05-20 12:41:24 +0000
commitf6c3e9db74a4725b16760d420f4f0a1695768277 (patch)
treec0b142fd67f5268ef934e7168f63830b036e6444
parent56c2b415ba84a87c8d2e76a39d79297ff8df7d7f (diff)
downloadwww-f6c3e9db74a4725b16760d420f4f0a1695768277.tar
www-f6c3e9db74a4725b16760d420f4f0a1695768277.tar.gz
www-f6c3e9db74a4725b16760d420f4f0a1695768277.tar.bz2
www-f6c3e9db74a4725b16760d420f4f0a1695768277.tar.xz
www-f6c3e9db74a4725b16760d420f4f0a1695768277.zip
temporarily round robin FR download mirrors with DE ones
-rw-r--r--lib/Downloads.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index 69fb49c99..b357e4612 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -133,12 +133,15 @@ class Downloads
function get_mirror($country)
{
$mirs = self::get_all_mirrors();
-
if (array_key_exists($country, $mirs))
{
- $mirs = $mirs[$country];
- shuffle($mirs);
- return array_shift($mirs);
+ $mirs_tmp = $mirs[$country];
+ if ($country == 'FR')
+ {
+ $mirs_tmp = array_merge($mirs_tmp, $mirs['DE']);
+ }
+ shuffle($mirs_tmp);
+ return array_shift($mirs_tmp);
}
else
{