mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Use StatsdDataFactory service instead of deprecated RequestContext method
Change-Id: Ie291146f67b525d891614c23b17052500fc8aa51
This commit is contained in:
parent
e7b7d95313
commit
6dcb872a7b
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
abstract class EchoDiscussionParser {
|
||||
const HEADER_REGEX = '^(==+)\s*([^=].*)\s*\1$';
|
||||
|
||||
|
@ -151,7 +153,7 @@ abstract class EchoDiscussionParser {
|
|||
}
|
||||
$mentionedUsers = array();
|
||||
$count = 0;
|
||||
$stats = RequestContext::getMain()->getStats();
|
||||
$stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
|
||||
|
||||
foreach ( $links[NS_USER] as $dbk => $page_id ) {
|
||||
$user = User::newFromName( $dbk );
|
||||
|
|
Loading…
Reference in a new issue