From dcd18afa3c5dd8ddce0f6fbbc60969946571a178 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 22:31:43 +0000 Subject: [PATCH] Don't use fetch_node_string() as it's evil --- includes/cachev.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) . "'"); -- 2.43.5