mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user