From: Derick Alangi Date: Fri, 19 Apr 2019 05:26:06 +0000 (+0100) Subject: rcfeed: Replace usage of deprecated CommentStore::getStore() X-Git-Tag: 1.34.0-rc.0~1916^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/%C3%90%C2%94%C3%91%C2%83%C3%90%C2%BD%C3%90%C2%B0?a=commitdiff_plain;h=5f11f09d70ce022837ba9de84fe8f08f94c8018a;p=lhc%2Fweb%2Fwiklou.git rcfeed: Replace usage of deprecated CommentStore::getStore() Change-Id: Icaa475a86becb7ef95304f5df31d3fdcf93168e9 --- diff --git a/includes/rcfeed/IRCColourfulRCFeedFormatter.php b/includes/rcfeed/IRCColourfulRCFeedFormatter.php index 158ee5951f..ff85c90614 100644 --- a/includes/rcfeed/IRCColourfulRCFeedFormatter.php +++ b/includes/rcfeed/IRCColourfulRCFeedFormatter.php @@ -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']