Switching over to the contextual revision number
[viewsvn.git] / view.php
index 75ffd72ac5d7371725887cababe0623422013542..3838e1fc89e0db4b532bb5dc2f81f04967de71a9 100644 (file)
--- a/view.php
+++ b/view.php
@@ -33,7 +33,7 @@ $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('view.php', null, Paths::fetch_rev_str(false, 'HEAD'));