diff --git a/includes/Hooks.php b/includes/Hooks.php index 3b196762..11893303 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -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; } }