summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2016-09-15 09:14:56 +0200
committeruwetews <uwe.tews@googlemail.com>2016-09-15 09:14:56 +0200
commit8835408e0d8e85faaa9325d384055572b9d996b0 (patch)
tree6b22d44081a1337d1b18e40b3e0ee6e206b5464c
parentcd28347130a1cf0b9ee1848fed0b57c1b2f8d285 (diff)
downloadsmarty-8835408e0d8e85faaa9325d384055572b9d996b0.tar.gz
smarty-8835408e0d8e85faaa9325d384055572b9d996b0.tar.bz2
smarty-8835408e0d8e85faaa9325d384055572b9d996b0.zip
- improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation
-rw-r--r--change_log.txt1
-rw-r--r--libs/Smarty.class.php2
-rw-r--r--libs/sysplugins/smarty_internal_method_clearcompiledtemplate.php2
3 files changed, 3 insertions, 2 deletions
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));