mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54: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
|
||||||
|
@@ -98,8 +98,8 @@ class Smarty_Internal_TemplateCompilerBase extends Smarty_Internal_Base {
|
|||||||
/**
|
/**
|
||||||
* Compile Tag
|
* Compile Tag
|
||||||
*
|
*
|
||||||
* This is a call back from the lexer/parser
|
* This is a call back from the lexer/parser
|
||||||
* It executes the required compile plugin for the Smarty tag
|
* It executes the required compile plugin for the Smarty tag
|
||||||
*
|
*
|
||||||
* @param string $tag tag name
|
* @param string $tag tag name
|
||||||
* @param array $args array with tag attributes
|
* @param array $args array with tag attributes
|
||||||
@@ -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