diff --git a/change_log.txt b/change_log.txt index 137b36f6..3a6915ec 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +06/18/2009 +- fixed compilation of block plugins when caching enabled + 06/14/2009 - fixed array access on super globals - allow smarty tags within xml tags diff --git a/libs/sysplugins/internal.templatecompilerbase.php b/libs/sysplugins/internal.templatecompilerbase.php index 859620e4..4e07eeb9 100644 --- a/libs/sysplugins/internal.templatecompilerbase.php +++ b/libs/sysplugins/internal.templatecompilerbase.php @@ -98,8 +98,8 @@ class Smarty_Internal_TemplateCompilerBase extends Smarty_Internal_Base { /** * Compile Tag * - * This is a call back from the lexer/parser - * It executes the required compile plugin for the Smarty tag + * This is a call back from the lexer/parser + * It executes the required compile plugin for the Smarty tag * * @param string $tag tag name * @param array $args array with tag attributes @@ -180,6 +180,10 @@ class Smarty_Internal_TemplateCompilerBase extends Smarty_Internal_Base { } // plugin ? if (isset($this->smarty->registered_plugins[$base_tag]) && $this->smarty->registered_plugins[$base_tag][0] == 'block') { + // check no cache + if (!$this->smarty->registered_plugins[$base_tag][2]) { + $this->tag_nocache = true; + } return $this->block_plugin($args, $tag, $this); } }