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
Exit populateIpChanges maintenance script if there are no revisions
[lhc/web/wiklou.git]
/
maintenance
/
exportSites.php
diff --git
a/maintenance/exportSites.php
b/maintenance/exportSites.php
index
157a323
..
2462eaf
100644
(file)
--- a/
maintenance/exportSites.php
+++ b/
maintenance/exportSites.php
@@
-37,13
+37,13
@@
class ExportSites extends Maintenance {
$handle = fopen( $file, 'w' );
if ( !$handle ) {
$handle = fopen( $file, 'w' );
if ( !$handle ) {
- $this->
error( "Failed to open $file for writing.\n", 1
);
+ $this->
fatalError( "Failed to open $file for writing.\n"
);
}
$exporter = new SiteExporter( $handle );
}
$exporter = new SiteExporter( $handle );
- $site
s = SiteSQLStore::newInstance()->getSites( 'recache'
);
- $exporter->exportSites( $site
s
);
+ $site
Lookup = \MediaWiki\MediaWikiServices::getInstance()->getSiteLookup(
);
+ $exporter->exportSites( $site
Lookup->getSites()
);
fclose( $handle );
fclose( $handle );
@@
-52,5
+52,5
@@
class ExportSites extends Maintenance {
}
}
-$maintClass =
'ExportSites'
;
+$maintClass =
ExportSites::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;