From: Philip Tzou Date: Sun, 26 Apr 2009 14:51:11 +0000 (+0000) Subject: Follow up on r49790. Fixed a bug on variant select. X-Git-Tag: 1.31.0-rc.0~42005 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=a1961ff3e85298ba1de70fc9bbbfe09ea601e549;p=lhc%2Fweb%2Fwiklou.git Follow up on r49790. Fixed a bug on variant select. --- diff --git a/includes/Preferences.php b/includes/Preferences.php index da84ea2321..6dcbfab625 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -168,7 +168,8 @@ class Preferences { $options = array(); foreach( $variantArray as $code => $name ) { - $options[$code] = "$code - $name"; + $display = "$code - $name"; + $options[$display] = $code; } if(count($variantArray) > 1) { @@ -182,7 +183,7 @@ class Preferences { } } - if(count($variantArray) > 1 && !$wgDisableLangConversion && !$wgDisableTitleConversion) { + if( count($variantArray) > 1 && !$wgDisableLangConversion && !$wgDisableTitleConversion ) { $defaultPreferences['noconvertlink'] = array( 'type' => 'toggle',