Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -168,7 +168,8 @@ |
169 | 169 | |
170 | 170 | $options = array(); |
171 | 171 | foreach( $variantArray as $code => $name ) { |
172 | | - $options[$code] = "$code - $name"; |
| 172 | + $display = "$code - $name"; |
| 173 | + $options[$display] = $code; |
173 | 174 | } |
174 | 175 | |
175 | 176 | if(count($variantArray) > 1) { |
— | — | @@ -182,7 +183,7 @@ |
183 | 184 | } |
184 | 185 | } |
185 | 186 | |
186 | | - if(count($variantArray) > 1 && !$wgDisableLangConversion && !$wgDisableTitleConversion) { |
| 187 | + if( count($variantArray) > 1 && !$wgDisableLangConversion && !$wgDisableTitleConversion ) { |
187 | 188 | $defaultPreferences['noconvertlink'] = |
188 | 189 | array( |
189 | 190 | 'type' => 'toggle', |