diff --git a/change_log.txt b/change_log.txt index 75f35152..060c7cfc 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +02.05.2012 +- bugfix {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95) + 12.04.2012 - bugfix Smarty did eat the linebreak after the closing tag (Issue 93) - bugfix concurrent cache updates could create a warning (Forum Topic 21403) diff --git a/libs/sysplugins/smarty_internal_compile_block.php b/libs/sysplugins/smarty_internal_compile_block.php index c5349674..3b8ffc64 100644 --- a/libs/sysplugins/smarty_internal_compile_block.php +++ b/libs/sysplugins/smarty_internal_compile_block.php @@ -199,7 +199,7 @@ class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase { $compiler->template->has_nocache_code = true; } foreach($_tpl->required_plugins as $key => $tmp1) { - if ($compiler->nocache) { + if ($compiler->nocache && $compiler->template->caching) { $code = 'nocache'; } else { $code = $key;