From: Aaron Schulz Date: Tue, 21 Apr 2015 23:20:31 +0000 (-0700) Subject: Removed redundant wfReadOnly check in runJobs.php X-Git-Tag: 1.31.0-rc.0~11632 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e9a65a51947abbe5c905a43dfb6775cdf2106e32;p=lhc%2Fweb%2Fwiklou.git Removed redundant wfReadOnly check in runJobs.php * JobRunner handles this and doing it pre-fork is less safe Change-Id: I9e53e6b2d04f3f370723af8140e796ba337cfd3b --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 3864e3c607..c8445da72d 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -52,10 +52,6 @@ class RunJobs extends Maintenance { } public function execute() { - if ( wfReadOnly() ) { - $this->error( "Unable to run jobs; the wiki is in read-only mode.", 1 ); // die - } - if ( $this->hasOption( 'procs' ) ) { $procs = intval( $this->getOption( 'procs' ) ); if ( $procs < 1 || $procs > 1000 ) {