X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormField.php;h=4cf23942ff66805c7506269fd249362434bc3eec;hb=38d59dd21347dc5167fbef94a0558f6bbdcd4195;hp=7e4b15b0518e0412e9c3d63d42769bdc75e075dd;hpb=acf291598a5e03e032321f7d1208b1ebb6d86c3e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 7e4b15b051..4cf23942ff 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -113,7 +113,7 @@ abstract class HTMLFormField { } $data = $data[$key]; } - $testValue = $data; + $testValue = (string)$data; break; } @@ -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';