Skip to content

Commit

Permalink
- bugfix {insert} not works when caching is enabled and included temp…
Browse files Browse the repository at this point in the history
…late is present

   #496
  • Loading branch information
uwetews committed Oct 11, 2018
1 parent 7f531f6 commit c930f0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
===== 3.1.34-dev-2 =====
11.10.2018
- bugfix {insert} not works when caching is enabled and included template is present
https://github.com/smarty-php/smarty/issues/496

09.10.2018
- bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327
modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491
Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.34-dev-2';
const SMARTY_VERSION = '3.1.34-dev-3';
/**
* define variable scopes
*/
Expand Down
1 change: 1 addition & 0 deletions libs/sysplugins/smarty_internal_compile_insert.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler)
$_output .= "echo {$_function}({$_params},\$_smarty_tpl);?>";
}
}
$compiler->template->compiled->has_nocache_code = true;
return $_output;
}
}

0 comments on commit c930f0e

Please sign in to comment.