Replace deprecated JobQueueGroup::singleton()

Change-Id: I5b5f907c6f54874fc41e51fc6f4bd02bd2151845
This commit is contained in:
Umherirrender 2022-01-07 21:15:24 +01:00
parent 2793356c59
commit c3cfe99103

View file

@ -6,6 +6,7 @@ if ( $IP === false ) {
}
require_once "$IP/maintenance/Maintenance.php";
use MediaWiki\MediaWikiServices;
use PageImages\Job\InitImageDataJob;
/**
@ -42,7 +43,7 @@ class InitImageData extends Maintenance {
$queue = null;
$maxPressure = $this->getOption( 'queue-pressure', 0 );
if ( $maxPressure > 0 ) {
$queue = JobQueueGroup::singleton();
$queue = MediaWikiServices::getInstance()->getJobQueueGroup();
}
do {