change backtic syntax from $foo to $foo

This commit is contained in:
mohrt
2003-04-04 23:19:02 +00:00
parent da67d8edce
commit d169624a9b
3 changed files with 26 additions and 1 deletions

View File

@@ -1452,7 +1452,7 @@ class Smarty_Compiler extends Smarty {
function _expand_quoted_text($var_expr)
{
// if contains unescaped $, expand it
if(preg_match_all('%(?<!\\\\)\$(?:\`' . $this->_dvar_guts_regexp . '\`|\w+(\[[a-zA-Z0-9]+\])*)%', $var_expr, $_match)) {
if(preg_match_all('%(?:\`(?<!\\\\)\$' . $this->_dvar_guts_regexp . '\`)|(?:(?<!\\\\)\$\w+(\[[a-zA-Z0-9]+\])*)%', $var_expr, $_match)) {
$_match = $_match[0];
rsort($_match);
reset($_match);