mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix on calling template functions like Smarty tags
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
03/06/2010
|
||||
- bugfix on calling template functions like Smarty tags
|
||||
|
||||
01/06/2010
|
||||
- bugfix on template functions used with template inheritance
|
||||
- removed /* vim: set expandtab: */ comments
|
||||
|
@@ -31,12 +31,11 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
|
||||
$this->_open_tag('function', $save);
|
||||
$_name = trim($_attr['name'], "'\"");
|
||||
unset($_attr['name']);
|
||||
$compiler->template->properties['function'][$_name]['parameter'] = array();
|
||||
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'];
|
||||
}
|
||||
$compiler->smarty->template_functions[$_name]['parameter'] = $compiler->template->properties['function'][$_name]['parameter'];
|
||||
if ($compiler->template->caching) {
|
||||
$output = '';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user