From 446c15fafaf7b84f74bac04bca1934fe8fd90295 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 19 Dec 2002 17:15:29 +0000 Subject: [PATCH] fixed literal string not in quotes as parameters --- Smarty_Compiler.class.php | 4 ++-- libs/Smarty_Compiler.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 9d4a1275..174ad72b 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty { $tokens[$key] = $this->_parse_section_prop($val); } elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) { - // not recognized value - $this->_syntax_error("unknown syntax: $val"); + // literal string + $tokens[$key] = '"' . $val .'"'; } } } diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 9d4a1275..174ad72b 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1233,8 +1233,8 @@ class Smarty_Compiler extends Smarty { $tokens[$key] = $this->_parse_section_prop($val); } elseif(!in_array($val, $this->_permitted_tokens) && !is_numeric($val)) { - // not recognized value - $this->_syntax_error("unknown syntax: $val"); + // literal string + $tokens[$key] = '"' . $val .'"'; } } }