HTMLForm: Remove usage of HTMLForm::setSubmitProgressive
authorJayprakash12345 <0freerunning@gmail.com>
Fri, 6 Apr 2018 00:33:26 +0000 (06:03 +0530)
committerVolkerE <volker.e@wikimedia.org>
Sat, 21 Apr 2018 01:26:51 +0000 (01:26 +0000)
`[ 'primary', 'progressive' ]` is already set in `$mSubmitFlags`.

Bug: T191586
Change-Id: Id20a3bc81a47c6c2979a4d2881cecc760956394f

includes/specials/SpecialAutoblockList.php
includes/specials/SpecialBlockList.php
includes/specials/SpecialFileDuplicateSearch.php
includes/specials/SpecialNewpages.php

index bf13865..4d2d1b9 100644 (file)
@@ -74,7 +74,6 @@ class SpecialAutoblockList extends SpecialPage {
                        ->setFormIdentifier( 'blocklist' )
                        ->setWrapperLegendMsg( 'autoblocklist-legend' )
                        ->setSubmitTextMsg( 'autoblocklist-submit' )
-                       ->setSubmitProgressive()
                        ->prepareForm()
                        ->displayForm( false );
 
index 0899d58..667b814 100644 (file)
@@ -108,7 +108,6 @@ class SpecialBlockList extends SpecialPage {
                        ->setFormIdentifier( 'blocklist' )
                        ->setWrapperLegendMsg( 'ipblocklist-legend' )
                        ->setSubmitTextMsg( 'ipblocklist-submit' )
-                       ->setSubmitProgressive()
                        ->prepareForm()
                        ->displayForm( false );
 
index 7694a61..e6d81c9 100644 (file)
@@ -131,7 +131,6 @@ class FileDuplicateSearchPage extends QueryPage {
                $htmlForm->addHiddenFields( $hiddenFields );
                $htmlForm->setAction( wfScript() );
                $htmlForm->setMethod( 'get' );
-               $htmlForm->setSubmitProgressive();
                $htmlForm->setSubmitTextMsg( $this->msg( 'fileduplicatesearch-submit' ) );
 
                // The form should be visible always, even if it was submitted (e.g. to perform another action).
index 46d5276..efe6758 100644 (file)
@@ -269,7 +269,6 @@ class SpecialNewpages extends IncludableSpecialPage {
                $htmlForm = new HTMLForm( $form, $this->getContext() );
 
                $htmlForm->setSubmitText( $this->msg( 'newpages-submit' )->text() );
-               $htmlForm->setSubmitProgressive();
                // The form should be visible on each request (inclusive requests with submitted forms), so
                // return always false here.
                $htmlForm->setSubmitCallback(