'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' );
private function getPagesFromCategory( $title ) {
global $wgContLang;
+ $maxPages = $this->getConfig()->get( 'ExportPagelistLimit' );
+
$name = $title->getDBkey();
$dbr = wfGetDB( DB_SLAVE );
array( 'page_namespace', 'page_title' ),
array( 'cl_from=page_id', 'cl_to' => $name ),
__METHOD__,
- array( 'LIMIT' => '5000' )
+ array( 'LIMIT' => $maxPages )
);
$pages = array();
private function getPagesFromNamespace( $nsindex ) {
global $wgContLang;
+ $maxPages = $this->getConfig()->get( 'ExportPagelistLimit' );
+
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select(
'page',
array( 'page_namespace', 'page_title' ),
array( 'page_namespace' => $nsindex ),
__METHOD__,
- array( 'LIMIT' => '5000' )
+ array( 'LIMIT' => $maxPages )
);
$pages = array();