|
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 |
footplus Smarty n00b
Joined: 05 Mar 2010 Posts: 1
|
Posted: Fri Mar 05, 2010 1:30 pm Post subject: Bug: modifiers and {function} |
|
|
Hi guys,
I'm using smarty3.0b7.
If I put the following in a template, I get an error:
Code: |
{function name="x"}
{$test|escape}
{/function}
{1|escape}
|
Code: |
Fatal error: Call to undefined function smarty_modifier_escape()
|
It seems that the compiler sees that the function uses the escape modifier, and requires the modifier at the moment the function is called. It then marks the modifier as already included.
But it does not take into account the fact that the modifier may be used elsewhere before the function is actually used.
My current workaround is :
before the function declaration, but that's not ideal :p
Thanks for the good work on this project |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Mar 05, 2010 3:14 pm Post subject: |
|
|
This has been fixed already in the SVN version. |
|
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
|