get rid of unsetting name and script attributes to insert tags

This commit is contained in:
mohrt
2003-03-06 15:42:48 +00:00
parent 8beb8a39f6
commit 3fd8661f08
2 changed files with 2 additions and 3 deletions

2
NEWS
View File

@@ -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)

View File

@@ -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];