X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FexportSites.php;h=2462eaf8fdce42d419ff3067e14de0a349f74ada;hp=b1e4fa943b96e33d8eaaf989f2dad353fbf19ae4;hb=11ee7f78da9776db26098642a151a288f98bea14;hpb=61898ad28ed69c5b391eb43e0db9386279b9612c diff --git a/maintenance/exportSites.php b/maintenance/exportSites.php index b1e4fa943b..2462eaf8fd 100644 --- a/maintenance/exportSites.php +++ b/maintenance/exportSites.php @@ -37,7 +37,7 @@ class ExportSites extends Maintenance { $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 ); @@ -52,5 +52,5 @@ class ExportSites extends Maintenance { } -$maintClass = 'ExportSites'; +$maintClass = ExportSites::class; require_once RUN_MAINTENANCE_IF_MAIN;