X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b4fec57b6d53f8e8a45c46ff11f13cbcbea1006a..456d439e97675ca77018733f3106f507c3eedaa1:/lib-php/ParameterParser.php?ds=sidebyside diff --git a/lib-php/ParameterParser.php b/lib-php/ParameterParser.php index d4068aa3..46e69501 100644 --- a/lib-php/ParameterParser.php +++ b/lib-php/ParameterParser.php @@ -1,4 +1,12 @@ $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;