Switching over to the contextual revision number
[viewsvn.git] / blame.php
index a190d493a7d58d81d6e0bc23a05d36ef97fb1568..bcb1b438d540d864561f9557b8297e1f3fd2f9e4 100644 (file)
--- a/blame.php
+++ b/blame.php
@@ -34,17 +34,17 @@ $latest = $controller->cachev->fetch_node();
 
 $link['log'] = $controller->href_compound('log.php');
 
-$show['head'] = ($latest['revision'] != $controller->revnum AND $controller->revnum != 'HEAD');
+$show['head'] = ($latest['revision'] != $controller->revctx);
 if ($show['head'])
 {
        $link['gohead'] = $controller->href_compound('blame.php', null, Paths::fetch_rev_str(false, 'HEAD'));
-       $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $contoller->revnum));
+       $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $contoller->revctx));
 }
 
-$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->revnum));
+$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->revctx));
 if ($show['prev'])
 {
-       $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revnum, $prev));
+       $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revctx, $prev));
 }
 
 // ###################################################################