From: Zheng Zhu Date: Wed, 22 Sep 2004 03:56:27 +0000 (+0000) Subject: get variants from the content language object X-Git-Tag: 1.5.0alpha1~1892 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=619ac6dc0c29d673064490f5410bd295d027fd96;p=lhc%2Fweb%2Fwiklou.git get variants from the content language object --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 976bbd287f..93fb091b73 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -310,7 +310,7 @@ class PreferencesForm { * @access private */ function mainPrefsForm( $err ) { - global $wgUser, $wgOut, $wgLang, $wgUseDynamicDates, $wgValidSkinNames; + global $wgUser, $wgOut, $wgLang, $wgContLang, $wgUseDynamicDates, $wgValidSkinNames; global $wgAllowRealName, $wgImageLimits; global $wgLanguageNames; @@ -402,7 +402,7 @@ class PreferencesForm { $wgOut->addHtml("\n" ); /* see if there are multiple language variants to choose from*/ - $variants = $wgLang->getVariants(); + $variants = $wgContLang->getVariants(); $size=sizeof($variants); $variantArray=array();