From 619ac6dc0c29d673064490f5410bd295d027fd96 Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Wed, 22 Sep 2004 03:56:27 +0000 Subject: [PATCH] get variants from the content language object --- includes/SpecialPreferences.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1