From: Brion Vibber Date: Sun, 3 Jul 2005 07:16:20 +0000 (+0000) Subject: really fix that enhanced rc changes link X-Git-Tag: 1.5.0beta2~56 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=8bf6cd34767da7a464b37f884f2b6013490a52db;p=lhc%2Fweb%2Fwiklou.git really fix that enhanced rc changes link --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index bd187ebd3e..3d194c4a9d 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -122,7 +122,7 @@ class ChangesList { $userlinks = array () ; foreach ( $block AS $rcObj ) { $oldid = $rcObj->mAttribs['rc_last_oldid']; - $newid = $rcObj->mAttribs['rc_this_oldid']; + $newid = $rcObj->mAttribs['rc_this_oldid']; if ( $rcObj->mAttribs['rc_new'] ) { $isnew = true ; } @@ -172,12 +172,13 @@ class ChangesList { $r .= $link ; $curIdEq = 'curid=' . $block[0]->mAttribs['rc_cur_id']; + $currentRevision = $block[0]->mAttribs['rc_this_oldid']; if ( $block[0]->mAttribs['rc_type'] != RC_LOG ) { # Changes $r .= ' ('.count($block).' ' ; if ( $isnew ) $r .= wfMsg('changes'); else $r .= $this->skin->makeKnownLinkObj( $block[0]->getTitle() , wfMsg('changes') , - $curIdEq."&diff=$newid&oldid=$oldid" ) ; + $curIdEq."&diff=$currentRevision&oldid=$oldid" ) ; $r .= '; ' ; # History