X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateContentModel.php;h=8d64dae3ab87e0dd926859f754dcce9f42783b86;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hp=7cc829d99e9fbe22f455d38c802ba585583ee439;hpb=9b83841b9b44457b498770b847ac72f53031c34d;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;