Skip to content

Commit

Permalink
- bugfix {make_nocache} did display code if the template did not cont…
Browse files Browse the repository at this point in the history
…ain other nocache code

    #369
  • Loading branch information
uwetews committed Aug 26, 2017
1 parent 94c2ab7 commit deb9e12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions libs/sysplugins/smarty_internal_compile_make_nocache.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $
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 {
Expand Down

0 comments on commit deb9e12

Please sign in to comment.