X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateContentModel.php;h=8d64dae3ab87e0dd926859f754dcce9f42783b86;hb=1797b20c8e675d92594be2a6b0c2f319f11026b0;hp=7cc829d99e9fbe22f455d38c802ba585583ee439;hpb=0cf636a075b1716916979cc6c3bfead9ef960e01;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateContentModel.php b/maintenance/populateContentModel.php index 7cc829d99e..8d64dae3ab 100644 --- a/maintenance/populateContentModel.php +++ b/maintenance/populateContentModel.php @@ -51,7 +51,7 @@ class PopulateContentModel extends Maintenance { $ns = $this->getOption( 'ns' ); if ( !ctype_digit( $ns ) && $ns !== 'all' ) { - $this->error( 'Invalid namespace', 1 ); + $this->fatalError( 'Invalid namespace' ); } $ns = $ns === 'all' ? 'all' : (int)$ns; $table = $this->getOption( 'table' ); @@ -64,7 +64,7 @@ class PopulateContentModel extends Maintenance { $this->populatePage( $dbw, $ns ); break; default: - $this->error( "Invalid table name: $table", 1 ); + $this->fatalError( "Invalid table name: $table" ); } } @@ -250,5 +250,5 @@ class PopulateContentModel extends Maintenance { } } -$maintClass = 'PopulateContentModel'; +$maintClass = PopulateContentModel::class; require_once RUN_MAINTENANCE_IF_MAIN;