Merge "Remove duplicate names from CREDITS"
[lhc/web/wiklou.git] / maintenance / importSites.php
index 8845c60..5722344 100644 (file)
@@ -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 );