'id' => 'namespace',
'label-message' => 'namespace',
'all' => null,
- 'value' => $namespace,
+ 'default' => $namespace,
],
'hideredirects' => [
'type' => 'check',
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' )
/**
* @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 == '' ) {