aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2018-04-28 01:30:36 +0200
committerfilip <filip.komar@gmail.com>2018-04-28 01:30:36 +0200
commit36624a0337415c107e4f8017d7c10c74679f02e7 (patch)
tree71ecc44127e45696f49e368f761065432be6eb53 /lib/Downloads.php
parent1e35475cee83c4e19f7c165011064ae77231924b (diff)
downloadwww-36624a0337415c107e4f8017d7c10c74679f02e7.tar
www-36624a0337415c107e4f8017d7c10c74679f02e7.tar.gz
www-36624a0337415c107e4f8017d7c10c74679f02e7.tar.bz2
www-36624a0337415c107e4f8017d7c10c74679f02e7.tar.xz
www-36624a0337415c107e4f8017d7c10c74679f02e7.zip
update mirror lists
+ api switch to 6
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index dc955d431..84ac39607 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -149,7 +149,7 @@ class Downloads
require $cache_file;
} else {
- $data = file('http://mirrors.mageia.org/api/mageia.5.i586.list');
+ $data = file('http://mirrors.mageia.org/api/mageia.6.i586.list');
$mirrors = array();
$num_up = 0;
$num_dn = 0;
@@ -169,7 +169,7 @@ class Downloads
'country' => isset($m['country']) ? $m['country'] : '?',
'city' => isset($m['city']) ? utf8_encode($m['city']) : '-',
// BEWARE of the path substitution here. Must match.
- 'url' => str_replace('/distrib/5/i586', '', $m['url'])
+ 'url' => str_replace('/distrib/6/i586', '', $m['url'])
);
if ($documentation) {