- bugfix escape and wordrap modifier could be compiled into wrong code when used in {nocache}{/nocache}

section but caching is disabled  (Forum Topic 24260)
This commit is contained in:
Uwe.Tews@googlemail.com
2013-04-25 15:20:13 +00:00
parent f074a20ed5
commit 8e2d249233
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function smarty_modifiercompiler_wordwrap($params, $compiler)
}
$function = 'wordwrap';
if (Smarty::$_MBSTRING) {
if ($compiler->tag_nocache | $compiler->nocache) {
if ($compiler->template->caching && ($compiler->tag_nocache | $compiler->nocache)) {
$compiler->template->required_plugins['nocache']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php';
$compiler->template->required_plugins['nocache']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap';
} else {