From 01e44fe166235386c29d86b929259e89c51ae0f7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 12 Jan 2006 18:21:11 +0000 Subject: [PATCH] Use $latest to get the revision information --- browse.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/browse.php b/browse.php index 9069a3e..094e6a1 100644 --- a/browse.php +++ b/browse.php @@ -42,8 +42,7 @@ if ($show['head']) $link['diffhead'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, 'HEAD', $viewsvn->paths->revnum), $viewsvn->paths->path); } -$show['prev'] = false; -//$show['prev'] = (($prev = $cachev->fetch_prev_revision($viewsvn->paths->path, $viewsvn->paths->revnum)) != -1 ? true : false); +$show['prev'] = ($prev = $cachev->fetch_prev_revision($viewsvn->paths->relpath, $viewsvn->paths->revnum)); if ($show['prev']) { $link['diffprev'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $viewsvn->paths->revnum, $prev), $viewsvn->paths->path); @@ -51,7 +50,7 @@ if ($show['prev']) // ################################################################### -$revinfo = $cachev->fetch_revision($viewsvn->paths->revnum); +$revinfo = $cachev->fetch_revision($latest['revision']); $revinfo['message_clean'] = $viewsvn->svn->format_log_message($revinfo['message']); $revinfo['date'] = $viewsvn->svn->format_date_string($revinfo['dateline']); -- 2.43.5