fixed literal string not in quotes as parameters

This commit is contained in:
mohrt
2002-12-19 17:15:29 +00:00
parent d587059b28
commit 446c15fafa
2 changed files with 4 additions and 4 deletions

View File

@@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty {
$tokens[$key] = $this->_parse_section_prop($val); $tokens[$key] = $this->_parse_section_prop($val);
} }
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) { elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
// not recognized value // literal string
$this->_syntax_error("unknown syntax: $val"); $tokens[$key] = '"' . $val .'"';
} }
} }
} }

View File

@@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty {
$tokens[$key] = $this->_parse_section_prop($val); $tokens[$key] = $this->_parse_section_prop($val);
} }
elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) { elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) {
// not recognized value // literal string
$this->_syntax_error("unknown syntax: $val"); $tokens[$key] = '"' . $val .'"';
} }
} }
} }