X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportSites.php;h=572234422f8aa863be799d1ccc2e928fd78e9344;hb=3d95da4952619f9f773298c4461ccfc646fb18a9;hp=daec7b62140032c1bd85e4e4f32fd9df09f91b7c;hpb=a85d1b9d0cd7f02111d3a647d5b91e3b1f334563;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importSites.php b/maintenance/importSites.php index daec7b6214..572234422f 100644 --- a/maintenance/importSites.php +++ b/maintenance/importSites.php @@ -30,7 +30,8 @@ class ImportSites extends Maintenance { public function execute() { $file = $this->getArg( 0 ); - $importer = new SiteImporter( SiteSQLStore::newInstance() ); + $siteStore = \MediaWiki\MediaWikiServices::getInstance()->getSiteStore(); + $importer = new SiteImporter( $siteStore ); $importer->setExceptionCallback( [ $this, 'reportException' ] ); $importer->importFromFile( $file );