WMDE-Fisch has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/343278 )
Change subject: Replace deprecated Context::getStats() with
MWServices::getStatsdDataFactory()
......................................................................
Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()
Change-Id: Ia0791472c3569edc269d993bd0d91becd56e70da
---
M Hooks.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/78/343278/1
diff --git a/Hooks.php b/Hooks.php
index c76eabe..e12c43b 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -2,6 +2,7 @@
use MediaWiki\Auth\AuthManager;
use MediaWiki\Logger\LoggerFactory;
+use MediaWiki\MediaWikiServices;
class EchoHooks {
public static function registerExtension() {
@@ -999,7 +1000,7 @@
if ( $hasUnseen ) {
// Record that the user is going to see an indicator
that they have unread notifications
- RequestContext::getMain()->getStats()->increment(
'echo.unseen' );
+
MediaWikiServices::getInstance()->getStatsdDataFactory()->increment(
'echo.unseen' );
}
// If the user has new messages, display a talk page alert
--
To view, visit https://gerrit.wikimedia.org/r/343278
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0791472c3569edc269d993bd0d91becd56e70da
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits