Linker: Don't use Title::setFragment()
[lhc/web/wiklou.git] / maintenance / importSites.php
index daec7b6..5722344 100644 (file)
@@ -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 );