X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FFormSpecialPage.php;h=90567617fa8ea092f8007c3d87aeb3dd3c906ab8;hb=d24b74ce2db24799dbaa2abe0277a48694ad2ebd;hp=f727c053815e25222fcb5967c866b085502b3d3d;hpb=96a8ab6928b3e0be884c33eed8a1febf6fc4c31e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/FormSpecialPage.php b/includes/specialpage/FormSpecialPage.php index f727c05381..90567617fa 100644 --- a/includes/specialpage/FormSpecialPage.php +++ b/includes/specialpage/FormSpecialPage.php @@ -89,9 +89,12 @@ abstract class FormSpecialPage extends SpecialPage { * @return HTMLForm|null */ protected function getForm() { - $this->fields = $this->getFormFields(); - - $form = HTMLForm::factory( $this->getDisplayFormat(), $this->fields, $this->getContext(), $this->getMessagePrefix() ); + $form = HTMLForm::factory( + $this->getDisplayFormat(), + $this->getFormFields(), + $this->getContext(), + $this->getMessagePrefix() + ); $form->setSubmitCallback( array( $this, 'onSubmit' ) ); $form->setWrapperLegendMsg( $this->getMessagePrefix() . '-legend' );