X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAllPages.php;h=ef05dd15b655d9eea4e4f5c71f3d26e8e92f03f7;hb=431d5a4c82474d0fdce7ec0d78951d183dbe1f53;hp=17f6cca4ac218568bbbd2941bfdc0ab6b56c6aa8;hpb=55043101b2a89ea1e811b6d35e415f57ed0bf41d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAllPages.php b/includes/specials/SpecialAllPages.php index 17f6cca4ac..ef05dd15b6 100644 --- a/includes/specials/SpecialAllPages.php +++ b/includes/specials/SpecialAllPages.php @@ -44,8 +44,6 @@ class SpecialAllPages extends IncludableSpecialPage { protected $nsfromMsg = 'allpagesfrom'; /** - * Constructor - * * @param string $name Name of the special page, as seen in links and URLs (default: 'Allpages') */ function __construct( $name = 'Allpages' ) { @@ -128,7 +126,7 @@ class SpecialAllPages extends IncludableSpecialPage { 'id' => 'namespace', 'label-message' => 'namespace', 'all' => null, - 'value' => $namespace, + 'default' => $namespace, ], 'hideredirects' => [ 'type' => 'check', @@ -143,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' ) @@ -343,7 +343,7 @@ class SpecialAllPages extends IncludableSpecialPage { /** * @param int $ns The namespace of the article * @param string $text The name of the article - * @return array( int namespace, string dbkey, string pagename ) or null on error + * @return array|null [ int namespace, string dbkey, string pagename ] or null on error */ protected function getNamespaceKeyAndText( $ns, $text ) { if ( $text == '' ) {