X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FimportSites.php;h=572234422f8aa863be799d1ccc2e928fd78e9344;hb=1b13888ed6bd09731f10045650714a3392bb55df;hp=8845c60640c2706575fc03bb7eea0fee54f6ffaa;hpb=e57998f5330e8a0c9636c9075ae5fb8e3b72f913;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importSites.php b/maintenance/importSites.php index 8845c60640..572234422f 100644 --- a/maintenance/importSites.php +++ b/maintenance/importSites.php @@ -30,8 +30,9 @@ class ImportSites extends Maintenance { public function execute() { $file = $this->getArg( 0 ); - $importer = new SiteImporter( SiteSQLStore::newInstance() ); - $importer->setExceptionCallback( array( $this, 'reportException' ) ); + $siteStore = \MediaWiki\MediaWikiServices::getInstance()->getSiteStore(); + $importer = new SiteImporter( $siteStore ); + $importer->setExceptionCallback( [ $this, 'reportException' ] ); $importer->importFromFile( $file );