foreach ( $defOpt as $oname => $val ) {
$this->mOptions[$oname] = $val;
}
- /*
- default language setting
- */
- $this->setOption('variant', $wgContLang->getPreferredVariant());
- $this->setOption('language', $wgContLang->getPreferredVariant());
+ /*
+ default language setting
+ */
+ $this->setOption('variant', $wgContLang->getPreferredVariant());
+ $this->setOption('language', $wgContLang->getPreferredVariant());
}
/**
$confstr .= '!' . $this->getOption( 'showtoc' );
$confstr .= '!' . $this->getOption( 'date' );
$confstr .= '!' . $this->getOption( 'numberheadings' );
-
- // add in language variant option if there are multiple variants
- // supported by the language object
- if(sizeof($wgContLang->getVariants())>1) {
- $confstr .= '!' . $this->getOption( 'variant' );
- }
+ $confstr .= '!' . $this->getOption( 'language' );
+ // add in language variant option if there are multiple variants
+ // supported by the language object
+ if(sizeof($wgContLang->getVariants())>1) {
+ $confstr .= '!' . $this->getOption( 'variant' );
+ }
$this->mHash = $confstr;
return $confstr ;