X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bc46b8f213defcb6b8c9624a5c4c1f3571ccdcc..22da6c541d432bfff74f0c64cd806bd1dd446f7e:/lib/ParameterParser.php diff --git a/lib/ParameterParser.php b/lib/ParameterParser.php index ad281d70..32a848b9 100644 --- a/lib/ParameterParser.php +++ b/lib/ParameterParser.php @@ -104,18 +104,29 @@ class ParameterParser } foreach ($aLanguages as $sLanguage => $fLanguagePref) { - $aLangPrefOrder['short_name:'.$sLanguage] = 'short_name:'.$sLanguage; $aLangPrefOrder['name:'.$sLanguage] = 'name:'.$sLanguage; } - $aLangPrefOrder['short_name'] = 'short_name'; $aLangPrefOrder['name'] = 'name'; $aLangPrefOrder['brand'] = 'brand'; foreach ($aLanguages as $sLanguage => $fLanguagePref) { $aLangPrefOrder['official_name:'.$sLanguage] = 'official_name:'.$sLanguage; + $aLangPrefOrder['short_name:'.$sLanguage] = 'short_name:'.$sLanguage; } $aLangPrefOrder['official_name'] = 'official_name'; + $aLangPrefOrder['short_name'] = 'short_name'; $aLangPrefOrder['ref'] = 'ref'; $aLangPrefOrder['type'] = 'type'; return $aLangPrefOrder; } + + public function hasSetAny($aParamNames) + { + foreach ($aParamNames as $sName) { + if ($this->getBool($sName)) { + return true; + } + } + + return false; + } }