*/
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);
}
*/
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) . "'");