$variantfallbacks=array(),
$markup=array(),
$flags = array()) {
- global $wgLegalTitleChars;
$this->mLangObj = $langobj;
$this->mMainLanguageCode = $maincode;
$this->mVariants = $variants;
$carray = $this->parseManualRule($rules, $flags);
$disp = '';
- if(array_key_exists($plang, $carray))
+ if(array_key_exists($plang, $carray)) {
$disp = $carray[$plang];
- else if(array_key_exists($fallback, $carray))
+ } else if(array_key_exists($fallback, $carray)) {
$disp = $carray[$fallback];
+ }
} else{
// if we don't do content convert, still strip the -{}- tags
$disp = $rules;
// not in cache, or we need a fresh reload.
// we will first load the default tables
// then update them using things in MediaWiki:Zhconversiontable/*
- global $wgMessageCache;
$this->loadDefaultTables();
foreach($this->mVariants as $var) {
$cached = $this->parseCachedTable($var);