rcfeed: Replace usage of deprecated CommentStore::getStore()
authorDerick Alangi <alangiderick@gmail.com>
Fri, 19 Apr 2019 05:26:06 +0000 (06:26 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Fri, 19 Apr 2019 05:51:56 +0000 (06:51 +0100)
Change-Id: Icaa475a86becb7ef95304f5df31d3fdcf93168e9

includes/rcfeed/IRCColourfulRCFeedFormatter.php

index 158ee59..ff85c90 100644 (file)
@@ -19,6 +19,8 @@
  * @file
  */
 
+use MediaWiki\MediaWikiServices;
+
 /**
  * Generates a colourful notification intended for humans on IRC.
  *
@@ -93,8 +95,9 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter {
                        ) );
                        $flag = $attribs['rc_log_action'];
                } else {
+                       $store = MediaWikiServices::getInstance()->getCommentStore();
                        $comment = self::cleanupForIRC(
-                               CommentStore::getStore()->getComment( 'rc_comment', $attribs )->text
+                               $store->getComment( 'rc_comment', $attribs )->text
                        );
                        $flag = '';
                        if ( !$attribs['rc_patrolled']