- 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

View File

@@ -1,4 +1,7 @@
===== trunk ===== ===== trunk =====
02.01.2011
- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)
29.12.2011 29.12.2011
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) - 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) - bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730)

View File

@@ -198,7 +198,12 @@ class Smarty_Internal_Compile_Block extends Smarty_Internal_CompileBase {
if ($_tpl->has_nocache_code) { if ($_tpl->has_nocache_code) {
$compiler->template->has_nocache_code = true; $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($tmp1 as $name => $tmp) {
foreach($tmp as $type => $data) { foreach($tmp as $type => $data) {
$compiler->template->required_plugins[$code][$name][$type] = $data; $compiler->template->required_plugins[$code][$name][$type] = $data;