mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-10 05:14:26 +02:00
- fixed compilation of block plugins when caching enabled
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
06/18/2009
|
||||||
|
- fixed compilation of block plugins when caching enabled
|
||||||
|
|
||||||
06/14/2009
|
06/14/2009
|
||||||
- fixed array access on super globals
|
- fixed array access on super globals
|
||||||
- allow smarty tags within xml tags
|
- allow smarty tags within xml tags
|
||||||
|
@@ -180,6 +180,10 @@ class Smarty_Internal_TemplateCompilerBase extends Smarty_Internal_Base {
|
|||||||
}
|
}
|
||||||
// plugin ?
|
// plugin ?
|
||||||
if (isset($this->smarty->registered_plugins[$base_tag]) && $this->smarty->registered_plugins[$base_tag][0] == 'block') {
|
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);
|
return $this->block_plugin($args, $tag, $this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user