From 001e1edca5ed09b2fd7b80bfc8cf28504b12fe1c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 6 Nov 2005 03:03:49 +0000 Subject: [PATCH] Fixing caching mechanism --- template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/template.php b/template.php index 326a59b..34fda5d 100644 --- a/template.php +++ b/template.php @@ -131,8 +131,7 @@ class Template $templates = $this->registry->modules['db_mysql']->query("SELECT * FROM " . $this->tablename . " WHERE " . $this->namecolumn . " IN ('" . implode("', '", $namearray) . "')" . ($this->extrawhere ? $this->extrawhere : '')); while ($template = $this->registry->modules['db_mysql']->fetch_array($templates)) { - $template = $this->_parse($template); - $this->cache[ $template[ $this->namecolumn ] ] = $template[ $this->datacolumn ]; + $this->cache[ $template[ $this->namecolumn ] ] = $this->_parse($template[ $this->datacolumn ]); $this->usage["$name"] = 0; } } -- 2.43.5