- bugfix $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452}

This commit is contained in:
Uwe Tews
2015-03-15 02:01:07 +01:00
parent 7fe81e6d79
commit 7b7118eea9
2 changed files with 7 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
 ===== 3.1.22-dev ===== (xx.xx.2015)
15.03.2015
- bugfix $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452}
14.03.2015
- bugfix {nocache} {/nocache} tags corrupted code when used within a nocache section caused by a nocache template variable.

View File

@@ -258,8 +258,11 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
$this->cached->updateCache($this, $content, $no_output_filter);
$compile_check = $this->smarty->compile_check;
$this->smarty->compile_check = false;
$content = $this->cached->render($this);
if (!$this->cached->processed) {
$this->cached->process($this);
}
$this->smarty->compile_check = $compile_check;
$content = $this->getRenderedTemplateCode();
if ($this->smarty->debugging) {
Smarty_Internal_Debug::end_cache($this);
}