update URLs in code and documentation

Use https for all openstreetmap addresses, remove defunct
mapquest link and redirect documentation links to
nominatim.org.
This commit is contained in:
Sarah Hoffmann
2018-01-05 22:38:51 +01:00
parent 6ba87c37d6
commit 9712decefe
7 changed files with 16 additions and 22 deletions

View File

@@ -27,7 +27,7 @@ if ($aCMDResult['wiki-import']) {
'ia,is,it,ja,mk,nl,no,pl,ps,pt,ru,sk,sl,sv,uk,vi');
foreach (explode(',', $sLanguageIn) as $sLanguage) {
$sURL = 'http://wiki.openstreetmap.org/wiki/Special:Export/Nominatim/Special_Phrases/'.strtoupper($sLanguage);
$sURL = 'https://wiki.openstreetmap.org/wiki/Special:Export/Nominatim/Special_Phrases/'.strtoupper($sLanguage);
$sWikiPageXML = file_get_contents($sURL);
if (preg_match_all('#\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([^|]+) \\|\\| ([\\-YN])#', $sWikiPageXML, $aMatches, PREG_SET_ORDER)) {
foreach ($aMatches as $aMatch) {