Reverting r44454 "(bug 14843) IRC should flag redirects with "R" like it does with...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 11 Dec 2008 18:44:51 +0000 (18:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 11 Dec 2008 18:44:51 +0000 (18:44 +0000)
This doesn't work as intended; when editing existing articles, this'll pull the *previous* redirection state of the article, rather than the current state, so it's wrong whenever a page is changed into, or away from, being a redirect.

RELEASE-NOTES
includes/RecentChange.php

index c006eba..e406fb1 100644 (file)
@@ -218,8 +218,6 @@ The following extensions are migrated into MediaWiki 1.14:
 * Added complimentary function for addHandler() called removeHandler() for removing events
 * Improved security of file uploads for IE clients, using a reverse-engineered 
   algorithm very similar to IE's content detection algorithm.
-* (bug 14843) IRC output for RecentChanges now contains an "R" flag if the page
-  is a redirect.
 
 === Bug fixes in 1.14 ===
 
index 06d6092..92b9aac 100644 (file)
@@ -645,8 +645,7 @@ class RecentChange
                        $flag = $rc_log_action;
                } else {
                        $comment = self::cleanupForIRC( $rc_comment );
-                       $flag = ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : "") 
-                                       . ($this->getTitle()->isRedirect() ? "R" : "");
+                       $flag = ($rc_new ? "N" : "") . ($rc_minor ? "M" : "") . ($rc_bot ? "B" : "");
                }
 
                if ( $wgRC2UDPInterwikiPrefix === true ) {