Replace deprecated JobQueueGroup::singleton()

Change-Id: Ib19314b8a8a4265daf67e31d50f1c61aec2edb8e
This commit is contained in:
Umherirrender 2022-01-07 21:38:12 +01:00
parent 47b6c866cc
commit 354012f419

View file

@ -24,8 +24,8 @@ use ApiQuerySiteinfo;
use Content;
use DatabaseUpdater;
use IContextSource;
use JobQueueGroup;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MWCallableUpdate;
use OutputPage;
use Title;
@ -209,7 +209,7 @@ class Hooks {
'errors' => $errors,
'revision' => $revision,
] );
JobQueueGroup::singleton()->push( $job );
MediaWikiServices::getInstance()->getJobQueueGroup()->push( $job );
return true;
}
}