mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix on default {function} parameters when {function} was used in nocache sections
- bugfix on compiler object destruction. compiler_object property was by mistake unset.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
===== SVN trunk =====
|
||||
17/03/2011
|
||||
- bugfix on default {function} parameters when {function} was used in nocache sections
|
||||
- bugfix on compiler object destruction. compiler_object property was by mistake unset.
|
||||
|
||||
09/03/2011
|
||||
-bugfix a variable filter should run before modifers on an output tag (see change of 23/07/2010)
|
||||
|
||||
|
@@ -22,7 +22,7 @@ class Smarty_Internal_Function_Call_Handler extends Smarty_Internal_Template {
|
||||
if (!is_callable($_function)) {
|
||||
$_code = "function {$_function}(\$_smarty_tpl,\$params) {
|
||||
\$saved_tpl_vars = \$_smarty_tpl->tpl_vars;
|
||||
foreach (\$_smarty_tpl->template_functions['{$_name}']['parameter'] as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(trim(\$value,'\''));};
|
||||
foreach (\$_smarty_tpl->template_functions['{$_name}']['parameter'] as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(\$value);};
|
||||
foreach (\$params as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(\$value);}?>";
|
||||
if ($_nocache) {
|
||||
$_code .= preg_replace(array("!<\?php echo \\'/\*%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/|/\*/%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/\\';\?>!",
|
||||
|
@@ -280,9 +280,9 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
||||
$this->compiler_object->parser->current_buffer,
|
||||
$this->compiler_object->parser,
|
||||
$this->compiler_object->lex,
|
||||
$this->compiler_object->template,
|
||||
$this->compiler_object
|
||||
$this->compiler_object->template
|
||||
);
|
||||
$this->compiler_object = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user