X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FexportSites.php;h=2462eaf8fdce42d419ff3067e14de0a349f74ada;hb=ebf1570fd1ad7a9fc732e8dfdedcbc540c4a8ec6;hp=b1e4fa943b96e33d8eaaf989f2dad353fbf19ae4;hpb=0d0059d36e7494792378c020f5de6033985c3637;p=lhc%2Fweb%2Fwiklou.git 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;