*
* @since 1.25
*
- * @licence GNU GPL v2+
+ * @license GNU GPL v2+
* @author Daniel Kinzler
*/
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 );
}
-$maintClass = 'ExportSites';
+$maintClass = ExportSites::class;
require_once RUN_MAINTENANCE_IF_MAIN;