dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Rewrite ORMTable::unprefixFieldNames"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLSelectOrOtherField.php
diff --git
a/includes/htmlform/HTMLSelectOrOtherField.php
b/includes/htmlform/HTMLSelectOrOtherField.php
index
a001c43
..
cbf7d12
100644
(file)
--- a/
includes/htmlform/HTMLSelectOrOtherField.php
+++ b/
includes/htmlform/HTMLSelectOrOtherField.php
@@
-12,7
+12,8
@@
class HTMLSelectOrOtherField extends HTMLTextField {
isset( $params['other'] )
? $params['other']
: wfMessage( 'htmlform-selectorother-other' )->text();
- $this->mOptions[$msg] = 'other';
+ // Have 'other' always as first element
+ $this->mOptions = array( $msg => 'other' ) + $this->mOptions;
}
}