From: Bartosz DziewoƄski Date: Fri, 5 Jun 2015 01:07:11 +0000 (+0200) Subject: Html: Add buttonAttributes() more diligently X-Git-Tag: 1.31.0-rc.0~11135^2 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=1996e35ec7d4f1453162d3f1bdf5991448d9e968;p=lhc%2Fweb%2Fwiklou.git Html: Add buttonAttributes() more diligently It was done only for elements generated with linkButton() or submitButton(), and not input(). Change-Id: Idd7e01d596997bd5cade5a7851daf64bee10bb49 --- diff --git a/includes/Html.php b/includes/Html.php index 6da70b1dee..235096ddde 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -715,6 +715,9 @@ class Html { if ( in_array( $type, array( 'text', 'search', 'email', 'password', 'number' ) ) ) { $attribs = self::getTextInputAttributes( $attribs ); } + if ( in_array( $type, array( 'button', 'reset', 'submit' ) ) ) { + $attribs = self::buttonAttributes( $attribs ); + } return self::element( 'input', $attribs ); }