]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/ParameterParser.php
Reformatting of country keys
[nominatim.git] / lib-php / ParameterParser.php
index dd637722aacd737804e521906b2827c2060c71ed..46e69501cef878e8efd811c0dbf562cd06e1dc6f 100644 (file)
@@ -114,9 +114,10 @@ class ParameterParser
         }
 
         foreach ($aLanguages as $sLanguage => $fLanguagePref) {
         }
 
         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;
         $aLangPrefOrder['brand'] = 'brand';
         foreach ($aLanguages as $sLanguage => $fLanguagePref) {
             $aLangPrefOrder['official_name:'.$sLanguage] = 'official_name:'.$sLanguage;