From 528d07948f6b6722cdc10cdf9d94446cb0c42bfe Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 13 Apr 2008 15:05:32 +0000 Subject: [PATCH] Tweak for r33190: simply show rollback link if there's no previous revision. Thanks to Simetrical for pointing this out. --- includes/PageHistory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 5a07e9a2d0..7659c69e1a 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -611,7 +611,7 @@ class PageHistoryPager extends ReverseChronologicalPager { function formatRow( $row ) { if ( $this->mLastRow ) { - $latest = $this->mCounter == 1 && $this->mOffset == '' && !$this->mIsBackwards; + $latest = $this->mCounter == 1 && $this->mIsFirst; $firstInList = $this->mCounter == 1; $s = $this->mPageHistory->historyLine( $this->mLastRow, $row, $this->mCounter++, $this->mPageHistory->getNotificationTimestamp(), $latest, $firstInList ); @@ -630,7 +630,7 @@ class PageHistoryPager extends ReverseChronologicalPager { function getEndBody() { if ( $this->mLastRow ) { - $latest = $this->mCounter == 1 && $this->mOffset == 0 && !$this->mIsBackwards; + $latest = $this->mCounter == 1 && $this->mIsFirst; $firstInList = $this->mCounter == 1; if ( $this->mIsBackwards ) { # Next row is unknown, but for UI reasons, probably exists if an offset has been specified -- 2.20.1