From: Robert Sesek Date: Sun, 22 Jan 2006 22:31:43 +0000 (+0000) Subject: Don't use fetch_node_string() as it's evil X-Git-Tag: pre-node-objects~38 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=dcd18afa3c5dd8ddce0f6fbbc60969946571a178;p=viewsvn.git Don't use fetch_node_string() as it's evil --- diff --git a/includes/cachev.php b/includes/cachev.php index 9727cbc..ebb716e 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -101,6 +101,7 @@ class cacheV */ function fetch_node_string($node) { + trigger_error('You shouldn\'t be calling fetch_node_string. It\'s evil.', E_USER_WARNING); return preg_replace('#(^/|/$)#', '', $node); } @@ -189,7 +190,7 @@ class cacheV */ function fetch_node() { - $node = $this->fetch_node_string(($node === false ? $this->controller->path : $node)); + $node = $this->controller->path; if (!isset($this->memcache['nodes']["$node"])) { $result = $this->controller->registry->db->query_first("SELECT * FROM {$this->hash}_nodes WHERE name = '" . $this->controller->registry->escape($node) . "'");