mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix in templateExists() method
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
22/07/2010
|
||||||
|
- bugfix in templateExists() methode
|
||||||
|
|
||||||
20/07/2010
|
20/07/2010
|
||||||
- fixed handling of { strip } tag with whitespaces
|
- fixed handling of { strip } tag with whitespaces
|
||||||
|
|
||||||
|
@@ -511,9 +511,13 @@ class Smarty extends Smarty_Internal_Data {
|
|||||||
function templateExists($resource_name)
|
function templateExists($resource_name)
|
||||||
{
|
{
|
||||||
// create template object
|
// create template object
|
||||||
|
$save = $this->template_objects;
|
||||||
$tpl = new $this->template_class($resource_name, $this);
|
$tpl = new $this->template_class($resource_name, $this);
|
||||||
// check if it does exists
|
// check if it does exists
|
||||||
return $tpl->isExisting();
|
$result = $tpl->isExisting();
|
||||||
|
$this->template_objects = $save;
|
||||||
|
unset ($tpl);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user