Code

Updated smarty to 3.0.5
[gosa.git] / gosa-core / include / smarty / sysplugins / smarty_internal_function_call_handler.php
index 543c77b4725085b564bca4b9f37343656a34f800..44039169204c7679d4ab0bc8e2d0a9a1feaf4e36 100644 (file)
@@ -22,6 +22,7 @@ class Smarty_Internal_Function_Call_Handler extends Smarty_Internal_Template {
         if (!is_callable($_function)) {\r
             $_code = "function {$_function}(\$_smarty_tpl,\$params) {\r
     \$saved_tpl_vars = \$_smarty_tpl->tpl_vars;\r
+    foreach (\$_smarty_tpl->template_functions['{$_name}']['parameter'] as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(trim(\$value,'\''));};\r
     foreach (\$params as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(\$value);}?>";\r
             if ($_nocache) {\r
                 $_code .= preg_replace(array("!<\?php echo \\'/\*%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/|/\*/%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/\\';\?>!",\r