From 0762840741a27153fb8ec177324e1f8b1d6002a9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 22:06:05 +0000 Subject: [PATCH] Don't specify a revision range in browse.php diff to PREV link --- browse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browse.php b/browse.php index 82aac54..7e3a247 100644 --- a/browse.php +++ b/browse.php @@ -42,10 +42,10 @@ if ($show['head']) $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revnum)); } -$show['prev'] = (($prev = $controller->cachev->fetch_prev_revision($controller->revnum)) != -1); +$show['prev'] = ($controller->cachev->fetch_prev_revision($controller->revnum) != -1); if ($show['prev']) { - $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revnum, $prev['revision'])); + $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(false, $controller->revnum)); } // ################################################################### -- 2.43.5