Merge "Apply csshelpclass to vform help"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 24 Aug 2014 04:39:47 +0000 (04:39 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 24 Aug 2014 04:39:47 +0000 (04:39 +0000)
includes/htmlform/HTMLFormField.php

index 7e4b15b..70b1535 100644 (file)
@@ -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';