X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2Frcfeed%2FIRCColourfulRCFeedFormatter.php;h=4bdaca51c2336796718373ad8185058841279572;hb=9bbb26ffbd16edbaccce27461730fa9e172aa048;hp=158ee5951f337ef0e702b9c72b1e824a08910389;hpb=0f078a2166f24ad3a097588cf11b145c85ee233c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/rcfeed/IRCColourfulRCFeedFormatter.php b/includes/rcfeed/IRCColourfulRCFeedFormatter.php index 158ee5951f..4bdaca51c2 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'] @@ -129,7 +132,7 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter { } /** - * Remove newlines, carriage returns and decode html entites + * Remove newlines, carriage returns and decode html entities * @param string $text * @return string */