From: Jayprakash12345 <0freerunning@gmail.com> Date: Tue, 8 May 2018 20:21:43 +0000 (+0530) Subject: Special:AllPages: Overriding the title for form submission X-Git-Tag: 1.34.0-rc.0~5400^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=431d5a4c82474d0fdce7ec0d78951d183dbe1f53;p=lhc%2Fweb%2Fwiklou.git Special:AllPages: Overriding the title for form submission Bug: T193965 Change-Id: I10867b89e94d9aa54f30f5f4f8b5974f68479f6f --- diff --git a/includes/specials/SpecialAllPages.php b/includes/specials/SpecialAllPages.php index f9c917d35e..ef05dd15b6 100644 --- a/includes/specials/SpecialAllPages.php +++ b/includes/specials/SpecialAllPages.php @@ -126,7 +126,7 @@ class SpecialAllPages extends IncludableSpecialPage { 'id' => 'namespace', 'label-message' => 'namespace', 'all' => null, - 'value' => $namespace, + 'default' => $namespace, ], 'hideredirects' => [ 'type' => 'check', @@ -141,7 +141,9 @@ class SpecialAllPages extends IncludableSpecialPage { unset( $fields['hideredirects'] ); } - $form = HTMLForm::factory( 'table', $fields, $this->getContext() ); + $context = new DerivativeContext( $this->getContext() ); + $context->setTitle( $this->getPageTitle() ); // Remove subpage + $form = HTMLForm::factory( 'table', $fields, $context ); $form->setMethod( 'get' ) ->setWrapperLegendMsg( 'allpages' ) ->setSubmitTextMsg( 'allpagessubmit' )