From a693c7222c358e473c3d51a4989fd28ee356c5b1 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 14 Mar 2015 19:41:55 -0700 Subject: [PATCH] Remove FormSpecialPage::$fields Just use the result of FormSpecialPage::getFormFields() directly Change-Id: I2f6f8e20b83a24e744ab4c6ea5417d9627a3e0aa --- includes/specialpage/FormSpecialPage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specialpage/FormSpecialPage.php b/includes/specialpage/FormSpecialPage.php index 21e465a62e..90567617fa 100644 --- a/includes/specialpage/FormSpecialPage.php +++ b/includes/specialpage/FormSpecialPage.php @@ -89,11 +89,9 @@ abstract class FormSpecialPage extends SpecialPage { * @return HTMLForm|null */ protected function getForm() { - $this->fields = $this->getFormFields(); - $form = HTMLForm::factory( $this->getDisplayFormat(), - $this->fields, + $this->getFormFields(), $this->getContext(), $this->getMessagePrefix() ); -- 2.20.1