From: Bryan Davis Date: Sat, 23 Aug 2014 22:10:17 +0000 (-0600) Subject: Apply csshelpclass to vform help X-Git-Tag: 1.31.0-rc.0~14296^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=69e4c91ff57a9893d61116ce9c1fee82d94a70e3;p=lhc%2Fweb%2Fwiklou.git Apply csshelpclass to vform help Ensure that a form field which sets 'csshelpclass' and is rendered as a vform receives expected styling. Change-Id: Ibe082e07fe846334bd4dc257c9c0df8db23a1957 --- diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 7e4b15b051..70b15354e8 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -593,6 +593,9 @@ abstract class HTMLFormField { $wrapperAttributes = array( 'class' => 'htmlform-tip', ); + if ( $this->mHelpClass !== false ) { + $wrapperAttributes['class'] .= " {$this->mHelpClass}"; + } if ( $this->mHideIf ) { $wrapperAttributes['data-hide-if'] = FormatJson::encode( $this->mHideIf ); $wrapperAttributes['class'] .= ' mw-htmlform-hide-if';