From 7504954ce6ebbecbb6603ea3171782359c60e845 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 02:56:41 +0000 Subject: [PATCH] view.php no longer throws PHP errors --- view.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/view.php b/view.php index 42f9f5b..1e6947f 100644 --- a/view.php +++ b/view.php @@ -25,11 +25,11 @@ $fetchtemplates = array( require_once('./global.php'); -$navbar = $viewsvn->paths->construct_breadcrumb($viewsvn->paths->path); +$navbar = $controller->construct_breadcrumb(); // ################################################################### -$latest = $cachev->fetch_node($viewsvn->paths->relpath); +$latest = $controller->cachev->fetch_node($viewsvn->paths->relpath); $link['log'] = $viewsvn->paths->out('log.php' . $viewsvn->paths->revstr, $viewsvn->paths->path); @@ -40,7 +40,7 @@ if ($show['head']) $link['diffhead'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, 'HEAD', $viewsvn->paths->revnum), $viewsvn->paths->path); } -$show['prev'] = ($prev = $cachev->fetch_prev_revision($viewsvn->paths->relpath, $viewsvn->paths->revnum)); +$show['prev'] = ($prev = $controller->cachev->fetch_prev_revision($viewsvn->paths->relpath, $viewsvn->paths->revnum)); if ($show['prev']) { $link['diffprev'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $viewsvn->paths->revnum, $prev), $viewsvn->paths->path); @@ -48,13 +48,13 @@ if ($show['prev']) // ################################################################### -$logmsg = $cachev->fetch_revision($latest['revision']); +$logmsg = $controller->cachev->fetch_revision($latest['revision']); unset($logmsg['files']); -$logmsg['message_clean'] = $viewsvn->svn->format_log_message($logmsg['message']); -$logmsg['date'] = $viewsvn->svn->format_date_string($logmsg['dateline']); +$logmsg['message_clean'] = SVNCommon::format_log_message($logmsg['message']); +$logmsg['date'] = SVNCommon::format_date_string($logmsg['dateline']); -$catdata = implode("\n", $viewsvn->svn->cat($viewsvn->paths->repos, $viewsvn->paths->relpath, $viewsvn->paths->revnum)); +$catdata = implode("\n", $controller->library->cat($viewsvn->paths->repos, $viewsvn->paths->relpath, $viewsvn->paths->revnum)); // get language information require_once('./includes/file_types.php'); -- 2.43.5