From f6c3e9db74a4725b16760d420f4f0a1695768277 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Fri, 20 May 2011 12:41:24 +0000 Subject: temporarily round robin FR download mirrors with DE ones --- lib/Downloads.php | 11 +++++++---- 1 file 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 { -- cgit v1.2.1