mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Remove usage of RequestContext::getStats()
Bug: T156810 Change-Id: I795080cf431d396337a1ba6fa42e82ffb1b9c145
This commit is contained in:
parent
e8e42e40c9
commit
0c663b50e9
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue