X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrunJobs.php;h=51c52be61997bffdfe531e6f3c39ab07b4ef468d;hb=98f987241a798788817e87e2c4bec4c03ccdd8a5;hp=af2a318bac5a9e6339e4affc3ca27278e508c5c1;hpb=2b7fbceb23a4737de36cfc48d542a21dd6f53a7a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index af2a318bac..51c52be619 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -59,7 +59,7 @@ class RunJobs extends Maintenance { if ( $this->hasOption( 'procs' ) ) { $procs = intval( $this->getOption( 'procs' ) ); if ( $procs < 1 || $procs > 1000 ) { - $this->error( "Invalid argument to --procs", true ); + $this->fatalError( "Invalid argument to --procs" ); } elseif ( $procs != 1 ) { $fc = new ForkController( $procs ); if ( $fc->start() != 'child' ) { @@ -118,5 +118,5 @@ class RunJobs extends Maintenance { } } -$maintClass = "RunJobs"; +$maintClass = RunJobs::class; require_once RUN_MAINTENANCE_IF_MAIN;