mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
- bugfix on {insert}
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
07/05/2010
|
||||||
|
- bugfix on {insert}
|
||||||
|
|
||||||
06/05/2010
|
06/05/2010
|
||||||
- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag
|
- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag
|
||||||
|
|
||||||
|
@@ -356,7 +356,6 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
// generate replacement code
|
// generate replacement code
|
||||||
if ((!$this->template->resource_object->isEvaluated || $this->template->forceNocache) && $this->template->caching && !$this->suppressNocacheProcessing &&
|
if ((!$this->template->resource_object->isEvaluated || $this->template->forceNocache) && $this->template->caching && !$this->suppressNocacheProcessing &&
|
||||||
($this->nocache || $this->tag_nocache || $this->template->forceNocache == 2)) {
|
($this->nocache || $this->tag_nocache || $this->template->forceNocache == 2)) {
|
||||||
$this->tag_nocache = false;
|
|
||||||
$this->template->has_nocache_code = true;
|
$this->template->has_nocache_code = true;
|
||||||
$_output = str_replace("'", "\'", $content);
|
$_output = str_replace("'", "\'", $content);
|
||||||
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
|
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
|
||||||
@@ -376,6 +375,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
$_output = $content;
|
$_output = $content;
|
||||||
}
|
}
|
||||||
$this->suppressNocacheProcessing = false;
|
$this->suppressNocacheProcessing = false;
|
||||||
|
$this->tag_nocache = false;
|
||||||
return $_output;
|
return $_output;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user