From: Brion Vibber Date: Mon, 28 Nov 2005 04:32:39 +0000 (+0000) Subject: * Fix display of old recentchanges records for page moves X-Git-Tag: 1.6.0~1102 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=608e17655981a26db609cff438c318a2ff5870cc;p=lhc%2Fweb%2Fwiklou.git * Fix display of old recentchanges records for page moves --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4eef4f09d2..0b5aa9f8e5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -259,6 +259,8 @@ fully support the editing toolbar, but was found to be too confusing. * Substitute {{REVISIONID}} correctly in diff display * (bug 4090) Fix diff links in Special:Recentchangeslinked * (bug 4093) '&bot=1' in Special:Contributions now propagate to other links +* Fix display of old recentchanges records for page moves + === Caveats === diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 6d90e570fd..ecf261f78b 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -153,7 +153,7 @@ class ChangesList { } - function insertMove(&$s) { + function insertMove( &$s, $rc ) { # Diff $s .= '(' . $this->message['diff'] . ') ('; # Hist @@ -161,7 +161,7 @@ class ChangesList { ') . . '; # "[[x]] moved to [[y]]" - $msg = ( $rc_type == RC_MOVE ) ? '1movedto2' : '1movedto2_redir'; + $msg = ( $rc->mAttribs['rc_type'] == RC_MOVE ) ? '1movedto2' : '1movedto2_redir'; $s .= wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ), $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) ); } @@ -323,7 +323,7 @@ class OldChangesList extends ChangesList { // moved pages if ( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { - $this->insertMove($s); + $this->insertMove( $s, $rc ); // log entries } elseif( $rc_namespace == NS_SPECIAL && preg_match( '!^Log/(.*)$!', $rc_title, $matches ) ) { $this->insertLog($s, $rc->getTitle(), $matches[1]);