X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FcheckStorage.php;h=c0f6c7b6fa80621f61c18283d9cf82996fb86e50;hb=2727ff3541c95a21cc31d6d8af158a7561be9491;hp=0f996625fed76e12893db0c7a3448aab1c8b4d21;hpb=ab2d63b53ed29c44e4917125555af3dc2eb9964e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index 0f996625fe..c0f6c7b6fa 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -39,6 +39,7 @@ if ( !defined( 'MEDIAWIKI' ) ) { /** * Maintenance script to do various checks on external storage. * + * @fixme this should extend the base Maintenance class * @ingroup Maintenance ExternalStorage */ class CheckStorage { @@ -466,7 +467,10 @@ class CheckStorage { $dbw->ping(); $source = new ImportStreamSource( $file ); - $importer = new WikiImporter( $source ); + $importer = new WikiImporter( + $source, + ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) + ); $importer->setRevisionCallback( array( &$this, 'importRevision' ) ); $importer->doImport(); }