Changes because this is now a static class
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 19:52:53 +0000 (19:52 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 19:52:53 +0000 (19:52 +0000)
includes/paths.php

index f64fc1aff6c17f69a97f162e2c3fa1f655011fec..a4c45c3545800c0c61f4d502ef4d71227d78811f 100644 (file)
@@ -150,7 +150,7 @@ class Paths
        */
        function is_root_path($path)
        {
-               $path = $this->fetch_path($path);
+               $path = Paths::fetch_path($path);
                $temp = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY);
                if (sizeof($temp) > 0)
                {
@@ -175,13 +175,11 @@ class Paths
        */
        function fetch_rev_num($highlow = false, $high = null, $low = null)
        {
-               global $viewsvn;
-               
                if ($highlow)
                {
                        if (isset($viewsvn->in['high']) AND is_null($high))
                        {
-                               $high = $viewsvn->svn->rev($viewsvn->in['high']);
+                               $high = SVNCommon::rev($viewsvn->in['high']);
                        }
                        else if (is_null($high))
                        {
@@ -190,7 +188,7 @@ class Paths
                        
                        if (isset($viewsvn->in['low']) AND is_null($low))
                        {
-                               $low = $viewsvn->svn->rev($viewsvn->in['low']);
+                               $low = SVNCommon::rev($viewsvn->in['low']);
                        }
                        else if (is_null($low))
                        {