mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
09.09.2012
|
||||||
|
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}
|
||||||
|
|
||||||
27.08.2013
|
27.08.2013
|
||||||
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518}
|
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518}
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_C
|
|||||||
if (!is_array($function)) {
|
if (!is_array($function)) {
|
||||||
$output = "{$function}({$output},\$_smarty_tpl)";
|
$output = "{$function}({$output},\$_smarty_tpl)";
|
||||||
} elseif (is_object($function[0])) {
|
} elseif (is_object($function[0])) {
|
||||||
$output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE][{$key}][0]->{$function[1]}({$output},\$_smarty_tpl)";
|
$output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE]['{$key}'][0]->{$function[1]}({$output},\$_smarty_tpl)";
|
||||||
} else {
|
} else {
|
||||||
$output = "{$function[0]}::{$function[1]}({$output},\$_smarty_tpl)";
|
$output = "{$function[0]}::{$function[1]}({$output},\$_smarty_tpl)";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user