dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Quote column name aliases"
[lhc/web/wiklou.git]
/
maintenance
/
importSites.php
diff --git
a/maintenance/importSites.php
b/maintenance/importSites.php
index
daec7b6
..
5722344
100644
(file)
--- a/
maintenance/importSites.php
+++ b/
maintenance/importSites.php
@@
-30,7
+30,8
@@
class ImportSites extends Maintenance {
public function execute() {
$file = $this->getArg( 0 );
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 );
$importer->setExceptionCallback( [ $this, 'reportException' ] );
$importer->importFromFile( $file );