X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fimport%2FWikiImporter.php;h=328cdadb0bd81c08b1621701856817169b19a92c;hb=d6dcf23a8f22245e311d5582e4f9cd0f302e3738;hp=406667e14d57e98acedfb200c1f4478fe85ba7fb;hpb=fe79bc528b0e054aa630bd4fcfcdd4a9804892da;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/import/WikiImporter.php b/includes/import/WikiImporter.php index 406667e14d..328cdadb0b 100644 --- a/includes/import/WikiImporter.php +++ b/includes/import/WikiImporter.php @@ -23,6 +23,7 @@ * @file * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; /** * XML file reader for the page data importer. @@ -59,7 +60,7 @@ class WikiImporter { $this->reader = new XMLReader(); if ( !$config ) { wfDeprecated( __METHOD__ . ' without a Config instance', '1.25' ); - $config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $config = MediaWikiServices::getInstance()->getMainConfig(); } $this->config = $config; @@ -377,7 +378,7 @@ class WikiImporter { // Update article count statistics (T42009) // The normal counting logic in WikiPage->doEditUpdates() is designed for // one-revision-at-a-time editing, not bulk imports. In this situation it - // suffers from issues of slave lag. We let WikiPage handle the total page + // suffers from issues of replica DB lag. We let WikiPage handle the total page // and revision count, and we implement our own custom logic for the // article (content page) count. $page = WikiPage::factory( $title );