Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
filter variable print expression issue

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
manu.raynaud
Smarty n00b


Joined: 09 Sep 2013
Posts: 1

PostPosted: Mon Sep 09, 2013 10:44 am    Post subject: filter variable print expression issue Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4669
Location: Hamburg / Germany

PostPosted: Mon Sep 09, 2013 4:11 pm    Post subject: Reply with quote

Thanks for your input.
The fix is now in the SVN trunk and will later be included in 3.1.15
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP