X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FcheckStorage.php;h=9045870da42992fdf5c64a9b7ca9acc0b580e071;hb=716814a5d501efcc99b09fbb7e26caaf9a395d26;hp=bb9f4eacc52e7e7dcb078e12640467be4a9fe029;hpb=72b9240497311a2fa5f5b76d9e8bb953dc59853f;p=lhc%2Fweb%2Fwiklou.git 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();