diff --git a/change_log.txt b/change_log.txt index 7c85e363..df9d8e49 100644 --- a/change_log.txt +++ b/change_log.txt @@ -4,6 +4,7 @@ - bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292 - bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282 + - improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation 11.09.2016 - improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index f9fd353c..ea670e7a 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -114,7 +114,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.31-dev/22'; + const SMARTY_VERSION = '3.1.31-dev/23'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php b/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php index 17c47964..b73a2de3 100644 --- a/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php +++ b/libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php @@ -46,7 +46,7 @@ class Smarty_Internal_Method_ClearCompiledTemplate $_save_stat = $smarty->caching; $smarty->caching = false; /* @var Smarty_Internal_Template $tpl */ - $tpl = new $smarty->template_class($resource_name, $smarty); + $tpl = $smarty->createTemplate($resource_name); $smarty->caching = $_save_stat; if (!$tpl->source->handler->uncompiled && !$tpl->source->handler->recompiled && $tpl->source->exists) { $_resource_part_1 = basename(str_replace('^', $smarty->ds, $tpl->compiled->filepath));