diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2ab41c82..6a4580b9 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.22-dev/12'; + const SMARTY_VERSION = '3.1.22-dev/13'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_parsetree_tag.php b/libs/sysplugins/smarty_internal_parsetree_tag.php index 878c7668..28bbb938 100644 --- a/libs/sysplugins/smarty_internal_parsetree_tag.php +++ b/libs/sysplugins/smarty_internal_parsetree_tag.php @@ -56,7 +56,7 @@ class Smarty_Internal_ParseTree_Tag extends Smarty_Internal_ParseTree public function assign_to_var() { $var = sprintf('$_tmp%d', ++ Smarty_Internal_Templateparser::$prefix_number); - $this->parser->compiler->prefix_code[] = sprintf("\n%s\n", $this->data, $var); + $this->parser->compiler->prefix_code[] = sprintf("%s", $this->data, $var); return $var; }