diff options
Diffstat (limited to 'lib/smarty3/plugins/shared.literal_compiler_param.php')
-rw-r--r-- | lib/smarty3/plugins/shared.literal_compiler_param.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/smarty3/plugins/shared.literal_compiler_param.php b/lib/smarty3/plugins/shared.literal_compiler_param.php index 8a3711d..65caf03 100644 --- a/lib/smarty3/plugins/shared.literal_compiler_param.php +++ b/lib/smarty3/plugins/shared.literal_compiler_param.php @@ -5,7 +5,6 @@ * @package Smarty * @subpackage PluginsShared */ - /** * evaluate compiler parameter * @@ -25,12 +24,12 @@ function smarty_literal_compiler_param($params, $index, $default = null) } // test if param is a literal if (!preg_match('/^([\'"]?)[a-zA-Z0-9-]+(\\1)$/', $params[ $index ])) { - throw new SmartyException('$param[' . $index . - '] is not a literal and is thus not evaluatable at compile time'); + throw new SmartyException( + '$param[' . $index . + '] is not a literal and is thus not evaluatable at compile time' + ); } - $t = null; eval("\$t = " . $params[ $index ] . ";"); - return $t; } |