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 "Allow message object on HTMLForm::setWrapperLegendMsg/setSubmitTextMsg"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLTextField.php
diff --git
a/includes/htmlform/HTMLTextField.php
b/includes/htmlform/HTMLTextField.php
index
57f0a72
..
e584d88
100644
(file)
--- a/
includes/htmlform/HTMLTextField.php
+++ b/
includes/htmlform/HTMLTextField.php
@@
-43,9
+43,6
@@
class HTMLTextField extends HTMLFormField {
# is essentially just a clone of this one.
if ( isset( $this->mParams['type'] ) ) {
switch ( $this->mParams['type'] ) {
# is essentially just a clone of this one.
if ( isset( $this->mParams['type'] ) ) {
switch ( $this->mParams['type'] ) {
- case 'email':
- $attribs['type'] = 'email';
- break;
case 'int':
$attribs['type'] = 'number';
break;
case 'int':
$attribs['type'] = 'number';
break;
@@
-54,8
+51,10
@@
class HTMLTextField extends HTMLFormField {
$attribs['step'] = 'any';
break;
# Pass through
$attribs['step'] = 'any';
break;
# Pass through
+ case 'email':
case 'password':
case 'file':
case 'password':
case 'file':
+ case 'url':
$attribs['type'] = $this->mParams['type'];
break;
}
$attribs['type'] = $this->mParams['type'];
break;
}