mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-24 08:23:28 +00:00
Replace deprecated JobQueueGroup::singleton()
Change-Id: I5b5f907c6f54874fc41e51fc6f4bd02bd2151845
This commit is contained in:
parent
2793356c59
commit
c3cfe99103
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue