mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user