* @ingroup SpecialPage
*/
-use MediaWiki\MediaWikiServices;
use MediaWiki\Logger\LoggerFactory;
/**
}
/* Ok, let's get to it... */
- if ( $history == WikiExporter::CURRENT ) {
- $lb = false;
- $db = wfGetDB( DB_REPLICA );
- $buffer = WikiExporter::BUFFER;
- } else {
- // Use an unbuffered query; histories may be very long!
- $lb = MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->newMainLB();
- $db = $lb->getConnection( DB_REPLICA );
- $buffer = WikiExporter::STREAM;
-
- // This might take a while... :D
- Wikimedia\suppressWarnings();
- set_time_limit( 0 );
- Wikimedia\restoreWarnings();
- }
+ $db = wfGetDB( DB_REPLICA );
- $exporter = new WikiExporter( $db, $history, $buffer );
+ $exporter = new WikiExporter( $db, $history );
$exporter->list_authors = $list_authors;
$exporter->openStream();
}
$exporter->closeStream();
-
- if ( $lb ) {
- $lb->closeAll();
- }
}
/**