Remove usage of RequestContext::getStats()

Bug: T156810
Change-Id: I795080cf431d396337a1ba6fa42e82ffb1b9c145
This commit is contained in:
Florian Schmidt 2017-04-17 16:40:11 +02:00 committed by Krinkle
parent e8e42e40c9
commit 0c663b50e9

View file

@ -1,4 +1,7 @@
<?php
use MediaWiki\MediaWikiServices;
/**
* Tokenizer for AbuseFilter rules.
*/
@ -70,7 +73,7 @@ class AbuseFilterTokenizer {
static $stats = null;
if ( !$stats ) {
$stats = RequestContext::getMain()->getStats();
$stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
}
$cacheKey = wfGlobalCacheKey( __CLASS__, self::CACHE_VERSION, crc32( $code ) );