X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FVFormHTMLForm.php;h=325526bac270ec5e7d60aa46a6dd015dbe1cf227;hb=f629d095f0469dc9fa29143a8efdc498ee634730;hp=c920ac3188ad223f941536714e284d90353e43fd;hpb=a303296f2730d6279a249bde77f3e0b9b42e494f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/VFormHTMLForm.php b/includes/htmlform/VFormHTMLForm.php index c920ac3188..325526bac2 100644 --- a/includes/htmlform/VFormHTMLForm.php +++ b/includes/htmlform/VFormHTMLForm.php @@ -50,7 +50,7 @@ class VFormHTMLForm extends HTMLForm { return $field; } - function getHTML( $submitResult ) { + public function getHTML( $submitResult ) { // This is required for VForm HTMLForms that use that style regardless // of wgUseMediaWikiUIEverywhere (since they pre-date it). // When wgUseMediaWikiUIEverywhere is removed, this should be consolidated @@ -67,16 +67,16 @@ class VFormHTMLForm extends HTMLForm { protected function getFormAttributes() { $attribs = parent::getFormAttributes(); - $attribs['class'] = [ 'mw-ui-vform', 'mw-ui-container', 'visualClear' ]; + $attribs['class'] = [ 'mw-htmlform', 'mw-ui-vform', 'mw-ui-container' ]; return $attribs; } - function wrapForm( $html ) { + public function wrapForm( $html ) { // Always discard $this->mWrapperLegend return Html::rawElement( 'form', $this->getFormAttributes(), $html ); } - function getButtons() { + public function getButtons() { $buttons = ''; if ( $this->mShowSubmit ) {