From 9583884e2d101b36f769c525bd354df44f12cdb5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 17 Jan 2013 15:17:21 -0800 Subject: [PATCH] Added a read-only check to runJobs.php to avoid log spam. Change-Id: I049fe087d7e9c59383de8efb34e40d311804951a --- maintenance/runJobs.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.20.1