From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- lib/smarty3/plugins/shared.literal_compiler_param.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/smarty3/plugins/shared.literal_compiler_param.php') 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; } -- cgit v1.2.3