- bugfix in templateExists() method

This commit is contained in:
Uwe.Tews
2010-07-22 19:11:38 +00:00
parent ff7fce9bca
commit f319a15cfc
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
22/07/2010
- bugfix in templateExists() methode
20/07/2010
- fixed handling of { strip } tag with whitespaces

View File

@@ -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;
}
/**