diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 1f33393f..3e731eb5 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1448,7 +1448,7 @@ class Smarty_Compiler extends Smarty { function _expand_quoted_text($var_expr) { // if contains unescaped $, expand it - if(preg_match_all('%(?_dvar_guts_regexp . '\`?%', $var_expr, $_match)) { + if(preg_match_all('%(?_dvar_guts_regexp . '\`|\w+)%', $var_expr, $_match)) { $_match = $_match[0]; rsort($_match); reset($_match);