view.php no longer throws PHP errors
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 02:56:41 +0000 (02:56 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 02:56:41 +0000 (02:56 +0000)
view.php

index 42f9f5bd371d962a2718320b6992d6bd21404255..1e6947f104760816875b71e77df1f6b9cf3132e7 100644 (file)
--- 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');