diff --git a/change_log.txt b/change_log.txt index 768c0b4c..316d0492 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +22/07/2010 +- bugfix in templateExists() methode + 20/07/2010 - fixed handling of { strip } tag with whitespaces diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index c267d8bf..df5c82e5 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -511,9 +511,13 @@ class Smarty extends Smarty_Internal_Data { function templateExists($resource_name) { // create template object + $save = $this->template_objects; $tpl = new $this->template_class($resource_name, $this); // check if it does exists - return $tpl->isExisting(); + $result = $tpl->isExisting(); + $this->template_objects = $save; + unset ($tpl); + return $result; } /**