summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_compile_function.php
diff options
context:
space:
mode:
authorUwe.Tews <uwe.tews@localhost>2010-06-01 17:10:39 +0000
committerUwe.Tews <uwe.tews@localhost>2010-06-01 17:10:39 +0000
commitc82455c145cbf865ef8a5928a8c4cbb5f04bac9f (patch)
treed5945fcc666d84c8f40f9daca462fd7751f90627 /libs/sysplugins/smarty_internal_compile_function.php
parent72d41f3b592850844ce2becec083e8e2a274aa4c (diff)
downloadsmarty-c82455c145cbf865ef8a5928a8c4cbb5f04bac9f.tar.gz
smarty-c82455c145cbf865ef8a5928a8c4cbb5f04bac9f.tar.bz2
smarty-c82455c145cbf865ef8a5928a8c4cbb5f04bac9f.zip
- bugfix on template functions used with template inheritance
Diffstat (limited to 'libs/sysplugins/smarty_internal_compile_function.php')
-rw-r--r--libs/sysplugins/smarty_internal_compile_function.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/sysplugins/smarty_internal_compile_function.php b/libs/sysplugins/smarty_internal_compile_function.php
index 07a8f763..1f2fc020 100644
--- a/libs/sysplugins/smarty_internal_compile_function.php
+++ b/libs/sysplugins/smarty_internal_compile_function.php
@@ -34,6 +34,9 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
foreach ($_attr as $_key => $_data) {
$compiler->template->properties['function'][$_name]['parameter'][$_key] = $_data;
}
+ if (isset($compiler->template->properties['function'][$_name]['parameter'])) {
+ $compiler->smarty->template_functions[$_name]['parameter'] = $compiler->template->properties['function'][$_name]['parameter'];
+ }
if ($compiler->template->caching) {
$output = '';
} else {