- fixed compilation of block plugins when caching enabled

This commit is contained in:
Uwe.Tews
2009-06-18 17:46:25 +00:00
parent ce9a656829
commit b6b4d90487
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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);
}
}