From aaf9c1db83b0f25c66f60de66dc617d3346f5925 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 07:07:54 +0000 Subject: [PATCH] view.php now works --- view.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/view.php b/view.php index 6845255..6a6f698 100644 --- a/view.php +++ b/view.php @@ -29,21 +29,21 @@ $navbar = $controller->construct_breadcrumb(); // ################################################################### -$latest = $controller->cachev->fetch_node($viewsvn->paths->relpath); +$latest = $controller->cachev->fetch_node(); -$link['log'] = $controller->out('log.php' . $viewsvn->paths->revstr); +$link['log'] = $controller->href_compound('log.php'); -$show['head'] = ($latest['revision'] != $viewsvn->paths->revnum AND $viewsvn->paths->revnum != 'HEAD'); +$show['head'] = ($latest['revision'] != $controller->revnum AND $controller->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)); +$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($controller->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, $viewsvn->paths->revnum, $prev)); } // ################################################################### @@ -54,11 +54,11 @@ unset($logmsg['files']); $logmsg['message_clean'] = SVNCommon::format_log_message($logmsg['message']); $logmsg['date'] = SVNCommon::format_date_string($logmsg['dateline']); -$catdata = implode("\n", $controller->library->cat($viewsvn->paths->repos, $viewsvn->paths->relpath, $viewsvn->paths->revnum)); +$catdata = implode("\n", $controller->library->command('cat')); // get language information require_once('./includes/file_types.php'); -$extension = $funct->fetch_extension($viewsvn->paths->relpath); +$extension = $funct->fetch_extension($controller->path); $language = (isset($filetypes["$extension"]) ? $filetypes["$extension"] : null); // initialize GeSHi -- 2.43.5