From: Aaron Schulz Date: Thu, 17 Jan 2013 23:17:21 +0000 (-0800) Subject: Added a read-only check to runJobs.php to avoid log spam. X-Git-Tag: 1.31.0-rc.0~21008^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=9583884e2d101b36f769c525bd354df44f12cdb5;p=lhc%2Fweb%2Fwiklou.git Added a read-only check to runJobs.php to avoid log spam. Change-Id: I049fe087d7e9c59383de8efb34e40d311804951a --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index d401dec32c..8d2819d21c 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -53,6 +53,10 @@ class RunJobs extends Maintenance { public function execute() { global $wgTitle; + 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 ) {