diff --git a/change_log.txt b/change_log.txt index 5cff860a..b373725a 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +02.01.2011 +- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753) + 29.12.2011 - bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) - bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) diff --git a/libs/sysplugins/smarty_internal_compile_block.php b/libs/sysplugins/smarty_internal_compile_block.php index be0ca857..1cfc0f0c 100644 --- a/libs/sysplugins/smarty_internal_compile_block.php +++ b/libs/sysplugins/smarty_internal_compile_block.php @@ -198,7 +198,12 @@ class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase { if ($_tpl->has_nocache_code) { $compiler->template->has_nocache_code = true; } - foreach($_tpl->required_plugins as $code => $tmp1) { + foreach($_tpl->required_plugins as $key => $tmp1) { + if ($compiler->nocache) { + $code = 'nocache'; + } else { + $code = $key; + } foreach($tmp1 as $name => $tmp) { foreach($tmp as $type => $data) { $compiler->template->required_plugins[$code][$name][$type] = $data;