Clean this up a bit
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 21 Apr 2008 23:10:20 +0000 (23:10 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 21 Apr 2008 23:10:20 +0000 (23:10 +0000)
includes/RecentChange.php

index 149311c..b3fe325 100644 (file)
@@ -596,7 +596,8 @@ class RecentChange
                $user = $this->cleanupForIRC( $rc_user_text );
 
                if ( $rc_type == RC_LOG ) {
-                       $comment = $this->cleanupForIRC( str_replace($titleObj->getPrefixedText(),"\00302$title\00310",$actionComment) );
+                       $logTargetText = $titleObj->getPrefixedText();
+                       $comment = $this->cleanupForIRC( str_replace($logTargetText,"\00302$logTargetText\00310",$actionComment) );
                        $flag = $rc_log_action;
                } else {
                        $comment = $this->cleanupForIRC( $rc_comment );