From: Aaron Schulz Date: Sat, 11 Oct 2008 23:30:38 +0000 (+0000) Subject: (bug 15428) Fix erroneous coloring of unrelated items due to text matches. Only do... X-Git-Tag: 1.31.0-rc.0~44787 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=655fec7f307490d7ac8262d47106d82f4bc96a57;p=lhc%2Fweb%2Fwiklou.git (bug 15428) Fix erroneous coloring of unrelated items due to text matches. Only do the links. --- diff --git a/includes/RecentChange.php b/includes/RecentChange.php index dba447c79b..a576009762 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -643,8 +643,8 @@ class RecentChange $user = self::cleanupForIRC( $rc_user_text ); if ( $rc_type == RC_LOG ) { - $logTargetText = $this->getTitle()->getPrefixedText(); - $comment = self::cleanupForIRC( str_replace($logTargetText,"\00302$logTargetText\00310",$actionComment) ); + $targetText = $this->getTitle()->getPrefixedText(); + $comment = self::cleanupForIRC( str_replace("[[$targetText]]","[[\00302$targetText\00310]]",$actionComment) ); $flag = $rc_log_action; } else { $comment = self::cleanupForIRC( $rc_comment );