- bugfix added missing support of $cache_attrs for registered plugins

This commit is contained in:
uwe.tews@googlemail.com
2010-12-17 21:05:29 +00:00
parent 6d897f0d59
commit b9477b0deb
5 changed files with 12 additions and 5 deletions
@@ -364,6 +364,7 @@ class Smarty_Internal_TemplateCompilerBase {
($this->nocache || $this->tag_nocache || $this->template->forceNocache == 2)) {
$this->template->has_nocache_code = true;
$_output = str_replace("'", "\'", $content);
$_output = str_replace("^#^", "'", $_output);
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
// make sure we include modifer plugins for nocache code
if (isset($this->template->saved_modifier)) {