From: Robert Sesek Date: Sun, 22 Jan 2006 22:36:49 +0000 (+0000) Subject: Add support for single revision number passing X-Git-Tag: pre-node-objects~36 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=00783b6f53d8a3b069d3bd675cccf1c972c99e9f;p=viewsvn.git Add support for single revision number passing --- diff --git a/diff.php b/diff.php index ed3bfad..446ac9b 100644 --- a/diff.php +++ b/diff.php @@ -38,9 +38,16 @@ $link['log'] = $controller->href_compound('log.php'); // ################################################################### -$revs = Paths::fetch_rev_num(true); -$high = $revs['high']; -$low = $revs['low']; +if (isset($viewsvn->in['rev'])) +{ + $high = Paths::fetch_rev_num(false); +} +else +{ + $revs = Paths::fetch_rev_num(true); + $high = $revs['high']; + $low = $revs['low']; +} if ($high == 'HEAD') {