mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +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
|
01/06/2010
|
||||||
- bugfix on template functions used with template inheritance
|
- bugfix on template functions used with template inheritance
|
||||||
- removed /* vim: set expandtab: */ comments
|
- removed /* vim: set expandtab: */ comments
|
||||||
|
@@ -31,12 +31,11 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
|
|||||||
$this->_open_tag('function', $save);
|
$this->_open_tag('function', $save);
|
||||||
$_name = trim($_attr['name'], "'\"");
|
$_name = trim($_attr['name'], "'\"");
|
||||||
unset($_attr['name']);
|
unset($_attr['name']);
|
||||||
|
$compiler->template->properties['function'][$_name]['parameter'] = array();
|
||||||
foreach ($_attr as $_key => $_data) {
|
foreach ($_attr as $_key => $_data) {
|
||||||
$compiler->template->properties['function'][$_name]['parameter'][$_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) {
|
if ($compiler->template->caching) {
|
||||||
$output = '';
|
$output = '';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user