*/
$catpages = $this->getPagesFromCategory( $t );
if ( $catpages ) {
- $page .= "\n" . implode( "\n", $catpages );
+ if ( $page !== '' ) {
+ $page .= "\n";
+ }
+ $page .= implode( "\n", $catpages );
}
}
}
'textarea' => array(
'class' => 'HTMLTextAreaField',
'name' => 'pages',
+ 'label-message' => 'export-manual',
'nodata' => true,
- 'cols' => 40,
'rows' => 10,
'default' => $page,
),
);
}
- $htmlForm = HTMLForm::factory( 'div', $formDescriptor, $this->getContext() );
+ $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() );
$htmlForm->setSubmitTextMsg( 'export-submit' );
$htmlForm->prepareForm()->displayForm( false );
$this->addHelpLink( 'Help:Export' );