Index: trunk/phase3/includes/DifferenceEngine.php |
— | — | @@ -206,8 +206,12 @@ |
207 | 207 | |
208 | 208 | $prevlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'previousdiff' ), |
209 | 209 | 'diff=prev&oldid='.$this->mOldid, '', '', 'id="differences-prevlink"' ); |
210 | | - $nextlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'nextdiff' ), |
211 | | - 'diff=next&oldid='.$this->mNewid, '', '', 'id="differences-nextlink"' ); |
| 210 | + if ( $this->mNewRev->isCurrent() ) { |
| 211 | + $nextlink = ' '; |
| 212 | + } else { |
| 213 | + $nextlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'nextdiff' ), |
| 214 | + 'diff=next&oldid='.$this->mNewid, '', '', 'id="differences-nextlink"' ); |
| 215 | + } |
212 | 216 | |
213 | 217 | $oldminor = ''; |
214 | 218 | $newminor = ''; |
— | — | @@ -670,7 +674,7 @@ |
671 | 675 | $timestamp = $wgLang->timeanddate( $this->mNewRev->getTimestamp(), true ); |
672 | 676 | $this->mNewPage = $this->mNewRev->getTitle(); |
673 | 677 | if( $this->mNewRev->isCurrent() ) { |
674 | | - $newLink = $this->mNewPage->escapeLocalUrl( 'oldid=' . $this->mNewid ); |
| 678 | + $newLink = $this->mNewPage->escapeLocalUrl(); |
675 | 679 | $this->mPagetitle = htmlspecialchars( wfMsg( 'currentrev' ) ); |
676 | 680 | $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' ); |
677 | 681 | |