mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
- 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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user