From: Aaron Schulz Date: Mon, 28 Jul 2014 20:17:31 +0000 (-0700) Subject: Fixed calls to bogus methods in triggerJobs() X-Git-Tag: 1.31.0-rc.0~14711^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=9cc6726a2d6a27e861c9752eabfc8408dac55a65;p=lhc%2Fweb%2Fwiklou.git Fixed calls to bogus methods in triggerJobs() * Updates some callers that were missed in 094d901b8 Change-Id: Ie425dfdc7da37331e51e3cd8c8f8d890bb5dd6de --- diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 76530cbd9a..81edc4980a 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -662,9 +662,9 @@ class MediaWiki { } if ( !$wgRunJobsAsync ) { - // If running jobs asynchronously has been disabled, run the job here - // while the user waits - SpecialRunJobs::executeJobs( $n ); + // Fall back to running the job here while the user waits + $runner = new JobRunner(); + $runner->run( array( 'maxJobs' => $n ) ); return; } @@ -697,7 +697,8 @@ class MediaWiki { if ( !$sock ) { wfDebugLog( 'runJobs', "Failed to start cron API (socket error $errno): $errstr\n" ); // Fall back to running the job here while the user waits - SpecialRunJobs::executeJobs( $n ); + $runner = new JobRunner(); + $runner->run( array( 'maxJobs' => $n ) ); return; }