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