From 19986f634fa21ff77ef315fa000dc40775e81ec7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 06:28:28 +0000 Subject: [PATCH] Got the browse.php navbar working --- browse.php | 8 ++++---- templates/default/browse.tpl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/browse.php b/browse.php index 45f239d..6b122ed 100644 --- a/browse.php +++ b/browse.php @@ -33,19 +33,19 @@ $navbar = $controller->construct_breadcrumb(); $node = preg_replace('#(^/|/$)#', '', ($viewsvn->paths->relpath == '' ? $viewsvn->paths->path : $viewsvn->paths->relpath)); $latest = $controller->cachev->fetch_node($node); -$link['log'] = $controller->out('log.php' . $viewsvn->paths->revstr); +$link['log'] = $controller->href_compound('log.php', null, $controller->revstr); $show['head'] = ($latest['revision'] != $viewsvn->paths->revnum AND $viewsvn->paths->revnum != 'HEAD'); if ($show['head']) { - $link['gohead'] = $controller->out('browse.php' . $viewsvn->paths->fetch_rev_str(false, 'HEAD')); - $link['diffhead'] = $controller->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, 'HEAD', $viewsvn->paths->revnum)); + $link['gohead'] = $controller->href_compound('browse.php', null, Paths::fetch_rev_str(false, 'HEAD')); + $link['diffhead'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, 'HEAD', $controller->revnum)); } $show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($viewsvn->paths->relpath, $viewsvn->paths->revnum)); if ($show['prev']) { - $link['diffprev'] = $controller->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $viewsvn->paths->revnum, $prev)); + $link['diffprev'] = $controller->href_compound('diff.php', null, Paths::fetch_rev_str(true, $controller->revnum, $prev)); } // ################################################################### diff --git a/templates/default/browse.tpl b/templates/default/browse.tpl index c2c6c07..33c4ab7 100644 --- a/templates/default/browse.tpl +++ b/templates/default/browse.tpl @@ -20,15 +20,15 @@ $header ( - {@"View Log"} + {@"View Log"} - - {@"Go to HEAD"} - - {@"Diff to HEAD"} + - {@"Go to HEAD"} + - {@"Diff to HEAD"} - - {@"Diff to PREV"} + - {@"Diff to PREV"} ) -- 2.43.5