From: Alexandre Emsenhuber Date: Sun, 13 Apr 2008 15:05:32 +0000 (+0000) Subject: Tweak for r33190: simply show rollback link if there's no previous revision. Thanks... X-Git-Tag: 1.31.0-rc.0~48380 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=528d07948f6b6722cdc10cdf9d94446cb0c42bfe;p=lhc%2Fweb%2Fwiklou.git Tweak for r33190: simply show rollback link if there's no previous revision. Thanks to Simetrical for pointing this out. --- 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