* (bug 13690) Fix PHP notice on accessing some URLs
* Hide (undo) link if user isn't able to edit page
* Invalidate cache of pages that includes images via redirects on upload
+* (bug 13705) Don't show rollback link in page history if called with dir=prev
=== API changes in 1.13 ===
function formatRow( $row ) {
if ( $this->mLastRow ) {
- $latest = $this->mCounter == 1 && $this->mOffset == '';
+ $latest = $this->mCounter == 1 && $this->mOffset == '' && !$this->mIsBackwards;
$firstInList = $this->mCounter == 1;
$s = $this->mPageHistory->historyLine( $this->mLastRow, $row, $this->mCounter++,
$this->mPageHistory->getNotificationTimestamp(), $latest, $firstInList );
function getEndBody() {
if ( $this->mLastRow ) {
- $latest = $this->mCounter == 1 && $this->mOffset == 0;
+ $latest = $this->mCounter == 1 && $this->mOffset == 0 && !$this->mIsBackwards;
$firstInList = $this->mCounter == 1;
if ( $this->mIsBackwards ) {
# Next row is unknown, but for UI reasons, probably exists if an offset has been specified