X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fstorage%2FcheckStorage.php;h=9045870da42992fdf5c64a9b7ca9acc0b580e071;hp=bb9f4eacc52e7e7dcb078e12640467be4a9fe029;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=f9676b19503a72e70783966c5f748ef61277849b diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index bb9f4eacc5..9045870da4 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -21,6 +21,8 @@ * @ingroup Maintenance ExternalStorage */ +use MediaWiki\MediaWikiServices; + if ( !defined( 'MEDIAWIKI' ) ) { $optionsWithoutArgs = [ 'fix' ]; require_once __DIR__ . '/../commandLine.inc'; @@ -470,7 +472,7 @@ class CheckStorage { $source = new ImportStreamSource( $file ); $importer = new WikiImporter( $source, - ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) + MediaWikiServices::getInstance()->getMainConfig() ); $importer->setRevisionCallback( [ $this, 'importRevision' ] ); $importer->doImport();