--- Smarty-2.6.12/libs/Smarty_Compiler.class.php 2006-01-18 10:52:32.000000000 -0800 +++ smarty/Smarty_Compiler.class.php 2006-01-23 15:07:45.000000000 -0800 @@ -162,6 +162,8 @@ . '(?:\s*,\s*' . $this->_obj_single_param_regexp . ')*)?\)'; $this->_obj_start_regexp = '(?:' . $this->_dvar_regexp . '(?:' . $this->_obj_ext_regexp . ')+)'; $this->_obj_call_regexp = '(?:' . $this->_obj_start_regexp . '(?:' . $this->_obj_params_regexp . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?)'; + // Added 2004-01-07 Used for expanding object calls in backticks + $this->_obj_callext_regexp = '(?:' . $this->_obj_ext_regexp . ')' . '(?:' . $this->_obj_params_regexp . ')?(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?'; // matches valid modifier syntax: // |foo @@ -1666,7 +1668,7 @@ function _expand_quoted_text($var_expr) { // if contains unescaped $, expand it - if(preg_match_all('~(?:\`(?_dvar_guts_regexp . '(?:' . $this->_obj_ext_regexp . ')*\`)|(?:(?_dvar_guts_regexp . '(?:' . $this->_obj_callext_regexp . ')*\`)|(?:(?