From d9ba05407ab3742a098aa528e8a44f2801df4f5a Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Tue, 27 Sep 2011 21:48:33 +0000 Subject: [PATCH] - bugfix wrong resource could be used on compile check of custom resource --- change_log.txt | 1 + libs/sysplugins/smarty_internal_template.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index d75004bc..f7180b2f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -5,6 +5,7 @@ - bugfix remove race condition when a custom resource did change timestamp during compilation - bugfix variable property did not work on objects variable in template - bugfix smarty_make_timestamp() failed to process DateTime objects properly +- bugfix wrong resource could be used on compile check of custom resource 26.09.2011 - bugfix repeated calls to same subtemplate did not make use of cached template object diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 85dac239..0336c7a6 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -427,7 +427,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase { } elseif ($_file_to_check[2] == 'string') { continue; } else { - $source = Smarty_Resource::source($this, $this->smarty, $_file_to_check[0]); + $source = Smarty_Resource::source(null, $this->smarty, $_file_to_check[0]); $mtime = $source->timestamp; } if ($mtime > $_file_to_check[1]) {