X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialExport.php;h=513e7a96b85653fe9f655c5a04047e6105fbc823;hb=085b6e4787c3b204c4121ce18c58803c4f5efcff;hp=3a7e9cdf9de06cc95c49fdc31a48862dc7865233;hpb=92a0de2761494515883cec53f300650b0cbf77c8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 3a7e9cdf9d..513e7a96b8 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -23,7 +23,6 @@ * @ingroup SpecialPage */ -use MediaWiki\MediaWikiServices; use MediaWiki\Logger\LoggerFactory; /** @@ -379,23 +378,10 @@ class SpecialExport extends SpecialPage { } /* 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(); - } + $lb = false; + $db = wfGetDB( DB_REPLICA ); - $exporter = new WikiExporter( $db, $history, $buffer ); + $exporter = new WikiExporter( $db, $history ); $exporter->list_authors = $list_authors; $exporter->openStream();