* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Generates a colourful notification intended for humans on IRC.
*
) );
$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']
}
/**
- * Remove newlines, carriage returns and decode html entites
+ * Remove newlines, carriage returns and decode html entities
* @param string $text
* @return string
*/