From 655fec7f307490d7ac8262d47106d82f4bc96a57 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 11 Oct 2008 23:30:38 +0000 Subject: [PATCH] (bug 15428) Fix erroneous coloring of unrelated items due to text matches. Only do the links. --- includes/RecentChange.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1