- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)

This commit is contained in:
uwe.tews@googlemail.com
2012-01-02 20:49:26 +00:00
parent 1b25005d42
commit b38be6edaa
2 changed files with 9 additions and 1 deletions
@@ -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;