mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 05:41:37 +01:00
- improvements and bugfix on {include} tag handling
****************************************************************** NOTICE: existing compiled template and cache files must be deleted ******************************************************************
This commit is contained in:
@@ -296,12 +296,12 @@ class Smarty_Internal_TemplateBase {
|
||||
// we got a template resource
|
||||
$_templateId = $this->buildTemplateId ($template, $cache_id, $compile_id);
|
||||
// already in template cache?
|
||||
if (isset($this->template_objects[$_templateId])) {
|
||||
if (isset($this->smarty->template_objects[$_templateId])) {
|
||||
// return cached template object
|
||||
return $this->template_objects[$_templateId];
|
||||
return $this->smarty->template_objects[$_templateId];
|
||||
} else {
|
||||
// create and cache new template object
|
||||
return new $this->template_class($template, $this, $parent, $cache_id, $compile_id);
|
||||
return new $this->template_class($template, $this->smarty, $parent, $cache_id, $compile_id);
|
||||
}
|
||||
} else {
|
||||
// just return a copy of template class
|
||||
|
||||
Reference in New Issue
Block a user