Remove FormSpecialPage::$fields
authorKunal Mehta <legoktm@gmail.com>
Sun, 15 Mar 2015 02:41:55 +0000 (19:41 -0700)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 19 Mar 2015 16:12:56 +0000 (16:12 +0000)
Just use the result of FormSpecialPage::getFormFields() directly

Change-Id: I2f6f8e20b83a24e744ab4c6ea5417d9627a3e0aa

includes/specialpage/FormSpecialPage.php

index 21e465a..9056761 100644 (file)
@@ -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()
                );