X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3788d765ed4e7ddf00794085af757714bc102cf..456d439e97675ca77018733f3106f507c3eedaa1:/lib-php/ParameterParser.php?ds=inline diff --git a/lib-php/ParameterParser.php b/lib-php/ParameterParser.php index dd637722..46e69501 100644 --- a/lib-php/ParameterParser.php +++ b/lib-php/ParameterParser.php @@ -114,9 +114,10 @@ class ParameterParser } foreach ($aLanguages as $sLanguage => $fLanguagePref) { - $aLangPrefOrder['name:'.$sLanguage] = 'name:'.$sLanguage; + $aLangPrefOrder[$sLanguage] = $sLanguage; } - $aLangPrefOrder['name'] = 'name'; + + $aLangPrefOrder['default'] = 'default'; $aLangPrefOrder['brand'] = 'brand'; foreach ($aLanguages as $sLanguage => $fLanguagePref) { $aLangPrefOrder['official_name:'.$sLanguage] = 'official_name:'.$sLanguage;