We now have the high revision link working on diff.php
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 21 Apr 2007 18:28:11 +0000 (18:28 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 21 Apr 2007 18:28:11 +0000 (18:28 +0000)
diff.php

index 1341da46dac6874b8ed871cdc88b218987a223b5..b5ec790313cdf77d00d2ab3032884823e59bdc33 100644 (file)
--- a/diff.php
+++ b/diff.php
@@ -80,8 +80,9 @@ foreach ($diff->fetch() AS $filename => $file)
                        if ($key == 'hunk' AND isset($line['old']))
                        {
                                $filepath = ($isdir ? $controller->path . $filename : $controller->path);
-                               // $rlow = $controller->href_struct('view.php' . Paths::fetch_rev_str(false, $low), $filepath);
-                               // $rhigh = $controller->href_struct('view.php' . Paths::fetch_rev_str(false, $high), $filepath);
+                               // $rlow = ConstructLink('view', $input->in['repos'], $filename, $)
+                               $high = $revision->revision;
+                               $rhigh = ConstructLink('view', $input->in['repos'], $filename, $revision->revision);
                                $show['hunk'] = true;
                        }
                        else
@@ -143,4 +144,4 @@ eval('$template->flush("' . $template->fetch('diff') . '");');
 || # $Id$
 || ###################################################################
 \*=====================================================================*/
-?>
+?>
\ No newline at end of file