mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 03:40:53 +02:00
- bugfix added missing support of $cache_attrs for registered plugins
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user