mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
get rid of unsetting name and script attributes to insert tags
This commit is contained in:
2
NEWS
2
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)
|
||||
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user