aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2020-05-03 19:19:58 +0200
committerfilip <filip.komar@gmail.com>2020-05-03 19:19:58 +0200
commitf04e7c6d65d83aef9874dd7c493c62cc21aa58b8 (patch)
tree06bf6ff80994e86478945f92689866dd41066ee3
parent473f2c544ab67695e3ee24d7ed7f102cd380ec01 (diff)
downloadwww-f04e7c6d65d83aef9874dd7c493c62cc21aa58b8.tar
www-f04e7c6d65d83aef9874dd7c493c62cc21aa58b8.tar.gz
www-f04e7c6d65d83aef9874dd7c493c62cc21aa58b8.tar.bz2
www-f04e7c6d65d83aef9874dd7c493c62cc21aa58b8.tar.xz
www-f04e7c6d65d83aef9874dd7c493c62cc21aa58b8.zip
switch mirror api to mga7 to refresh proper mirrors
-rw-r--r--lib/Downloads.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index 05ba8b30b..fc8305c06 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.6.i586.list');
+ $data = file('http://mirrors.mageia.org/api/mageia.7.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/6/i586', '', $m['url'])
+ 'url' => str_replace('/distrib/7/i586', '', $m['url'])
);
if ($documentation) {