X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6be2077d922098d65f069557dea55542c15a5c98..a79c1bda9b77635e31f228e031ecbb6465f8dff4:/lib-php/ParameterParser.php diff --git a/lib-php/ParameterParser.php b/lib-php/ParameterParser.php index 90e0cee3..98b95388 100644 --- a/lib-php/ParameterParser.php +++ b/lib-php/ParameterParser.php @@ -114,11 +114,10 @@ class ParameterParser } foreach ($aLanguages as $sLanguage => $fLanguagePref) { - $this->addNameTag($aLangPrefOrder, $sLanguage); + $this->addNameTag($aLangPrefOrder, 'name:'.$sLanguage); } - $this->addNameTag($aLangPrefOrder, 'default'); + $this->addNameTag($aLangPrefOrder, 'name'); $this->addNameTag($aLangPrefOrder, 'brand'); - foreach ($aLanguages as $sLanguage => $fLanguagePref) { $this->addNameTag($aLangPrefOrder, 'official_name:'.$sLanguage); $this->addNameTag($aLangPrefOrder, 'short_name:'.$sLanguage);