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();