From: Tim Starling Date: Wed, 4 Jun 2008 03:31:56 +0000 (+0000) Subject: Reverted r35829, breaks the suppression of the "next diff" link ("newer edit" on... X-Git-Tag: 1.31.0-rc.0~47181 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=fb56c365fbb587010e6c613ab8a38fd7cc582bd9;p=lhc%2Fweb%2Fwiklou.git Reverted r35829, breaks the suppression of the "next diff" link ("newer edit" on wikipedia) when viewing a diff to the current revision. --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 52133ebc76..e74e4c756e 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -206,8 +206,12 @@ CONTROL; $prevlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'previousdiff' ), 'diff=prev&oldid='.$this->mOldid, '', '', 'id="differences-prevlink"' ); - $nextlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'nextdiff' ), - 'diff=next&oldid='.$this->mNewid, '', '', 'id="differences-nextlink"' ); + if ( $this->mNewRev->isCurrent() ) { + $nextlink = ' '; + } else { + $nextlink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'nextdiff' ), + 'diff=next&oldid='.$this->mNewid, '', '', 'id="differences-nextlink"' ); + } $oldminor = ''; $newminor = ''; @@ -670,7 +674,7 @@ CONTROL; $timestamp = $wgLang->timeanddate( $this->mNewRev->getTimestamp(), true ); $this->mNewPage = $this->mNewRev->getTitle(); if( $this->mNewRev->isCurrent() ) { - $newLink = $this->mNewPage->escapeLocalUrl( 'oldid=' . $this->mNewid ); + $newLink = $this->mNewPage->escapeLocalUrl(); $this->mPagetitle = htmlspecialchars( wfMsg( 'currentrev' ) ); $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' );