aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index 6a5342993..dc955d431 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -167,7 +167,7 @@ class Downloads
$item = array(
'zone' => isset($m['zone']) ? $m['zone'] : '?',
'country' => isset($m['country']) ? $m['country'] : '?',
- 'city' => isset($m['city']) ? $m['city'] : '?',
+ 'city' => isset($m['city']) ? utf8_encode($m['city']) : '-',
// BEWARE of the path substitution here. Must match.
'url' => str_replace('/distrib/5/i586', '', $m['url'])
);
@@ -200,7 +200,6 @@ class Downloads
file_put_contents($cache_file,
sprintf('<?php $mirrors = %s; ?>' . PHP_EOL, var_export($mirrors, true)));
}
-
return $mirrors;
}