|
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 |
m[e]ntor Smarty Rookie
Joined: 02 Jan 2007 Posts: 9
|
Posted: Mon Nov 14, 2011 12:36 pm Post subject: smarty 3.1.4 |
|
|
Hi,
this will work in v2:
Code: |
{if in_array($sVar, array ('test') ) } ... {/if}
|
but not in v3, in v3 it needs to be this [without whitespace between array and ( ]:
Code: |
{if in_array($sVar, array('test') ) } ... {/if}
|
Could you change the parser, to fetch it in the way 2.0 also do
with/without the space between array and the open bracket
// Oliver |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Nov 14, 2011 5:15 pm Post subject: |
|
|
This has been fixed now in the SVN trunk version and will be included in 3.1.5 |
|
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
|