X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f0088ca2be3bafc77993558d794715c652eb7b25..fb63a7418e6034f152d70b818b40ed68eb7a6c05:/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; + } }