From: Brion Vibber Date: Wed, 19 Mar 2008 23:43:26 +0000 (+0000) Subject: fix regression in page history, where sometimes the last link would need to generate... X-Git-Tag: 1.31.0-rc.0~48965 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1f17a10396ab07818dc425524cfaac51eb47bf9a;p=lhc%2Fweb%2Fwiklou.git fix regression in page history, where sometimes the last link would need to generate an 'oldid=prev' link but called a bogus variable --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 6fc82b2579..1c3995595c 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -351,7 +351,7 @@ class PageHistory { return $this->mSkin->makeKnownLinkObj( $this->mTitle, $last, - "diff=" . $rev->getId() . "&oldid=prev" ); + "diff=" . $prevRev->getId() . "&oldid=prev" ); } elseif( !$prevRev->userCan(Revision::DELETED_TEXT) || !$nextRev->userCan(Revision::DELETED_TEXT) ) { return $last; } else {