From 9cc6726a2d6a27e861c9752eabfc8408dac55a65 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Jul 2014 13:17:31 -0700 Subject: [PATCH] Fixed calls to bogus methods in triggerJobs() * Updates some callers that were missed in 094d901b8 Change-Id: Ie425dfdc7da37331e51e3cd8c8f8d890bb5dd6de --- includes/MediaWiki.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.20.1