Skip to content

Commit

Permalink
Remove REL1_35 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
hslater committed Mar 28, 2024
1 parent fe35e50 commit 561f160
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use DateTime;
use Exception;
use GlobalVarConfig;
use JobQueueGroup;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MWStake\MediaWiki\Component\RunJobsTrigger\Job\InvokeRunner;
Expand Down Expand Up @@ -130,15 +129,9 @@ public static function runDeferred() {
return;
}

$services = MediaWikiServices::getInstance();
$config = $services->getMainConfig();
$mwVersion = $config->get( 'Version' );
if ( version_compare( $mwVersion, '1.35', '>=' ) ) {
$services->getJobQueueGroupFactory()->makeJobQueueGroup()
->push( new InvokeRunner() );
} else {
JobQueueGroup::singleton()->push( new InvokeRunner() );
}
MediaWikiServices::getInstance()->getJobQueueGroupFactory()
->makeJobQueueGroup()
->push( new InvokeRunner() );
}

/**
Expand Down

0 comments on commit 561f160

Please sign in to comment.