Remove subpage from form target on Special:BlockList
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 20 Apr 2013 07:39:30 +0000 (09:39 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 20 Apr 2013 08:30:12 +0000 (08:30 +0000)
This information is already in field from the form, so there is
no need to duplicate it.

Change-Id: Ie816cef7aa9864203eb160fd3f1be92d649ed0f0

includes/specials/SpecialBlockList.php

index b83b499..784ad04 100644 (file)
@@ -97,6 +97,7 @@ class SpecialBlockList extends SpecialPage {
                        ),
                );
                $form = new HTMLForm( $fields, $this->getContext() );
+               $form->setTitle( $this->getTitle() ); // Remove subpage
                $form->setMethod( 'get' );
                $form->setWrapperLegendMsg( 'ipblocklist-legend' );
                $form->setSubmitTextMsg( 'ipblocklist-submit' );