dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef7675
)
Follow up on r49790. Fixed a bug on variant select.
author
Philip Tzou
<philip@users.mediawiki.org>
Sun, 26 Apr 2009 14:51:11 +0000
(14:51 +0000)
committer
Philip Tzou
<philip@users.mediawiki.org>
Sun, 26 Apr 2009 14:51:11 +0000
(14:51 +0000)
includes/Preferences.php
patch
|
blob
|
history
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
da84ea2
..
6dcbfab
100644
(file)
--- 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',