From: Brion Vibber Date: Tue, 29 Jan 2008 00:17:34 +0000 (+0000) Subject: Applying live hack from Wikimedia code base: tweaks to runJobs.php. Not clear that... X-Git-Tag: 1.31.0-rc.0~49740 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=03c32c32afef10355e3e8f3e931c0f1ce7c3a623;p=lhc%2Fweb%2Fwiklou.git Applying live hack from Wikimedia code base: tweaks to runJobs.php. Not clear that it actually accomplishes anything of substance, but what the hey. --- diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 4539be054d..799092e1fe 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -1,6 +1,6 @@ $type); + $conds = "job_cmd = " . $dbw->addQuotes($type); while ( $dbw->selectField( 'job', 'count(*)', $conds, 'runJobs.php' ) ) { $offset=0; for (;;) { $job = ($type == false) ? - Job::pop($offset, $type) + Job::pop($offset) : Job::pop_type($type); if ($job == false)