|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
manu.raynaud Smarty n00b
Joined: 09 Sep 2013 Posts: 1
|
Posted: Mon Sep 09, 2013 10:44 am Post subject: filter variable print expression issue |
|
|
if a variable filter is registerd using array($object, $method) form in the callback, the render in Smarty_Internal_Compile_Private_Print_Expression is not the good one.
in Smarty_Internal_Compile_Private_Print_Expression line 94 replace :
Code: | $output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE][{$key}][0]->{$function[1]}({$output},\$_smarty_tpl)"; |
by
Code: | $output = "\$_smarty_tpl->smarty->registered_filters[Smarty::FILTER_VARIABLE][\"{$key}\"][0]->{$function[1]}({$output},\$_smarty_tpl)"; |
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Sep 09, 2013 4:11 pm Post subject: |
|
|
Thanks for your input.
The fix is now in the SVN trunk and will later be included in 3.1.15 |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|