Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smarty 3.1.4

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
m[e]ntor
Smarty Rookie


Joined: 02 Jan 2007
Posts: 9

PostPosted: Mon Nov 14, 2011 12:36 pm    Post subject: smarty 3.1.4 Reply with quote

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


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

PostPosted: Mon Nov 14, 2011 5:15 pm    Post subject: Reply with quote

This has been fixed now in the SVN trunk version and will be included in 3.1.5
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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