return $sDefault;
}
- if (!in_array($this->aParams[$sName], $aValues)) {
+ if (!in_array($this->aParams[$sName], $aValues, true)) {
userError("Parameter '$sName' must be one of: ".join(', ', $aValues));
}
}
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);