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/modifiercompiler.default.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/smarty3/plugins/modifiercompiler.default.php') diff --git a/lib/smarty3/plugins/modifiercompiler.default.php b/lib/smarty3/plugins/modifiercompiler.default.php index 2c4c00a..ae886c4 100644 --- a/lib/smarty3/plugins/modifiercompiler.default.php +++ b/lib/smarty3/plugins/modifiercompiler.default.php @@ -5,11 +5,10 @@ * @package Smarty * @subpackage PluginsModifierCompiler */ - /** * Smarty default modifier plugin - * Type: modifier
- * Name: default
+ * Type: modifier + * Name: default * Purpose: designate default value for empty variables * * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual) @@ -25,11 +24,9 @@ function smarty_modifiercompiler_default($params) if (!isset($params[ 1 ])) { $params[ 1 ] = "''"; } - array_shift($params); foreach ($params as $param) { $output = '(($tmp = @' . $output . ')===null||$tmp===\'\' ? ' . $param . ' : $tmp)'; } - return $output; } -- cgit v1.2.3