- if ( !$wgRunJobsAsync ) {
- // If running jobs asynchronously has been disabled, run the job here
- // while the user waits
- SpecialRunJobs::executeJobs( $n );
+ if ( !$this->config->get( 'RunJobsAsync' ) ) {
+ // Fall back to running the job here while the user waits
+ $runner = new JobRunner();
+ $runner->run( array( 'maxJobs' => $n ) );