Merge "Replace deprecated JobQueueGroup::singleton()"

This commit is contained in:
jenkins-bot 2022-01-23 21:39:36 +00:00 committed by Gerrit Code Review
commit bd45eeda91

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;
@ -207,7 +207,7 @@ class Hooks {
'errors' => $errors,
'revision' => $revision,
] );
JobQueueGroup::singleton()->push( $job );
MediaWikiServices::getInstance()->getJobQueueGroup()->push( $job );
return true;
}
}