X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueue.php;h=d20a233ee2ddb7fa203d5fbf57b8b1c69cab969b;hp=020a68472852ee46c35448f1c30d529be1a04ddc;hb=82e2c924e473fa3b99bb8e0da71d99b70ec5ca07;hpb=a206443c0e0f8efbdbc9b2e0a6b201a3a3527dd9 diff --git a/includes/jobqueue/JobQueue.php b/includes/jobqueue/JobQueue.php index 020a684728..d20a233ee2 100644 --- a/includes/jobqueue/JobQueue.php +++ b/includes/jobqueue/JobQueue.php @@ -19,8 +19,8 @@ * * @file * @defgroup JobQueue JobQueue - * @author Aaron Schulz */ +use MediaWiki\MediaWikiServices; /** * Class to handle enqueueing and running of background jobs @@ -709,7 +709,7 @@ abstract class JobQueue { public static function incrStats( $key, $type, $delta = 1 ) { static $stats; if ( !$stats ) { - $stats = RequestContext::getMain()->getStats(); + $stats = MediaWikiServices::getInstance()->getStatsdDataFactory(); } $stats->updateCount( "jobqueue.{$key}.all", $delta ); $stats->updateCount( "jobqueue.{$key}.{$type}", $delta );