'prefix' => [
'label-message' => 'allpagesprefix',
'name' => 'prefix',
+ 'id' => 'nsfrom',
'type' => 'text',
'size' => '30',
+ 'default' => str_replace( '_', ' ', $from ),
],
'namespace' => [
'type' => 'namespaceselect',
'id' => 'namespace',
'label-message' => 'namespace',
'all' => null,
- 'value' => $namespace,
+ 'default' => $namespace,
],
'hidedirects' => [
'class' => 'HTMLCheckField',
'label-message' => 'prefixindex-strip',
],
];
- $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
+ $context = new DerivativeContext( $this->getContext() );
+ $context->setTitle( $this->getPageTitle() ); // Remove subpage
+ $htmlForm = new HTMLForm( $formDescriptor, $context );
$htmlForm
->setMethod( 'get' )
->setWrapperLegendMsg( 'allpages' )