No longer need the override for fetch_node()
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:17:21 +0000 (22:17 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 22:17:21 +0000 (22:17 +0000)
includes/cachev.php

index 13fc600e176848cb390a1d84bf45ede9e2e3844a..9727cbcc9705ccae003e5b6e8f2ceb416e12a0ce 100644 (file)
@@ -139,7 +139,7 @@ class cacheV
        */
        function fetch_prev_revision($revision)
        {
-               $data = $this->fetch_node(($this->controller->path == '/' ? $this->controller->repos : $this->controller->path));
+               $data = $this->fetch_node();
                $data = $data['history'];               
                if (sizeof($data) < 1)
                {
@@ -185,11 +185,9 @@ class cacheV
        *
        * @access       public
        *
-       * @param        string  Node override
-       *
        * @return       integer Latest revision; FALSE if none (not in HEAD)
        */
-       function fetch_node($node = false)
+       function fetch_node()
        {
                $node = $this->fetch_node_string(($node === false ? $this->controller->path : $node));
                if (!isset($this->memcache['nodes']["$node"]))