$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'));