X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FexportSites.php;h=736b12b3047cf1b00ee504f6656b0f42ef6a20c3;hb=f2b621be73632b17d7e647b10959a0ed7dae9284;hp=b1e4fa943b96e33d8eaaf989f2dad353fbf19ae4;hpb=1dd2e07276e1deaf431ddb01c92111038f9e2cd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/exportSites.php b/maintenance/exportSites.php index b1e4fa943b..736b12b304 100644 --- a/maintenance/exportSites.php +++ b/maintenance/exportSites.php @@ -9,7 +9,7 @@ require_once $basePath . '/maintenance/Maintenance.php'; * * @since 1.25 * - * @licence GNU GPL v2+ + * @license GNU GPL v2+ * @author Daniel Kinzler */ class ExportSites extends Maintenance { @@ -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;