- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)

This commit is contained in:
uwe.tews@googlemail.com
2012-02-07 21:55:37 +00:00
parent 820e0e70d8
commit c000b3a480
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
===== trunk =====
07.02.2012
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
06.02.2012
- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)

View File

@@ -509,11 +509,13 @@ abstract class Smarty_Internal_TemplateCompilerBase {
{
$callback = null;
$script = null;
$cacheable = true;
$result = call_user_func_array(
$this->smarty->default_plugin_handler_func,
array($tag, $plugin_type, $this->template, &$callback, &$script)
array($tag, $plugin_type, $this->template, &$callback, &$script, &$cacheable)
);
if ($result) {
$this->tag_nocache = $this->tag_nocache || !$cacheable;
if ($script !== null) {
if (is_file($script)) {
if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {