From a1961ff3e85298ba1de70fc9bbbfe09ea601e549 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Sun, 26 Apr 2009 14:51:11 +0000 Subject: [PATCH] Follow up on r49790. Fixed a bug on variant select. --- includes/Preferences.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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', -- 2.20.1