X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLTextField.php;h=e584d886c4c4390964fcb98e282751ff4636e26b;hb=4c8d66cca63d6a54ce74fb3594a77930f1dcd951;hp=57f0a72527d3c6d2b9b7715b6898eda395684387;hpb=96603cd221051a324c902b6d4debd88ff1418404;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLTextField.php b/includes/htmlform/HTMLTextField.php index 57f0a72527..e584d886c4 100644 --- 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'] ) { - case 'email': - $attribs['type'] = 'email'; - break; case 'int': $attribs['type'] = 'number'; break; @@ -54,8 +51,10 @@ class HTMLTextField extends HTMLFormField { $attribs['step'] = 'any'; break; # Pass through + case 'email': case 'password': case 'file': + case 'url': $attribs['type'] = $this->mParams['type']; break; }