From 3fd8661f08cb0ff3208da9b1a6dbf5500c648355 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 6 Mar 2003 15:42:48 +0000 Subject: [PATCH] get rid of unsetting name and script attributes to insert tags --- NEWS | 2 ++ libs/Smarty.class.php | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 569452b1..9046508d 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - get rid of unsetting name and script attributes + to insert tag (Thomas Schulz, Monte) - changed argument order of string_format modifier back, was right in the first place (Monte) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 9eddbfc2..7149757d 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1865,9 +1865,7 @@ class Smarty } $args = unserialize($insert_args[$i]); - $name = $args['name']; - unset($args['name']); if (isset($args['script'])) { if (!$this->_get_php_resource($this->_dequote($args['script']), $resource_type, $php_resource)) { @@ -1879,7 +1877,6 @@ class Smarty } else { eval($php_resource); } - unset($args['script']); } $function_name = $this->_plugins['insert'][$name][0];