- bugfix {make_nocache} did display code if the template did not contain other nocache code

https://github.com/smarty-php/smarty/issues/369
This commit is contained in:
Uwe Tews
2017-08-26 16:13:04 +02:00
parent 94c2ab7e54
commit deb9e12aaa
3 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
https://github.com/smarty-php/smarty/issues/327
- bugfix templates filepath with multibyte characters did not work
https://github.com/smarty-php/smarty/issues/385
- bugfix {make_nocache} did display code if the template did not contain other nocache code
https://github.com/smarty-php/smarty/issues/369
09.8.2017
- improvement repeated delimiter like {{ and }} will be treated as literal

View File

@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.32-dev-21';
const SMARTY_VERSION = '3.1.32-dev-22';
/**
* define variable scopes

View File

@@ -55,6 +55,7 @@ class Smarty_Internal_Compile_Make_Nocache extends Smarty_Internal_CompileBase
if ($compiler->template->caching) {
$output = "<?php \$_smarty_tpl->smarty->ext->_make_nocache->save(\$_smarty_tpl, {$_attr[ 'var' ]});\n?>\n";
$compiler->has_code = true;
$compiler->template->compiled->has_nocache_code = true;
$compiler->suppressNocacheProcessing = true;
return $output;
} else {