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

Multiline tags does not working anymore

 
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
Soren
Smarty n00b


Joined: 23 Dec 2011
Posts: 4

PostPosted: Sat Jun 09, 2012 12:51 pm    Post subject: Multiline tags does not working anymore Reply with quote

Hello!

I've updated Smarty today and my site stopped working.

Code like
Code:
{foreach from=$areas item=area}{include
file='area.html' area=$area upper=true}{/foreach}

throws excelption:
Code:
Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "...cut..." on line 32 "file='area.html' area=$area upper=true}{/foreach}</div>" missing "file" attribute' in W:\home\sapland.dev\www\os\lib\Smarty3\sysplugins\smarty_internal_templatecompilerbase.php:632


Line
Code:
{foreach from=$areas item=area}{include file='area.html' area=$area upper=true}{/foreach}
works fine
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Sat Jun 09, 2012 2:28 pm    Post subject: Reply with quote

This bug was introduced by a previous patch.
It is fixed now in the SVN trunk and will later be included in 3.1.10
Back to top
View user's profile Send private message
Soren
Smarty n00b


Joined: 23 Dec 2011
Posts: 4

PostPosted: Sat Jun 09, 2012 2:29 pm    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
ninix
Smarty n00b


Joined: 11 Jun 2012
Posts: 1

PostPosted: Mon Jun 11, 2012 5:21 pm    Post subject: Reply with quote

Hi,

I tried with version 3.1.10 and the following code doesn't work:
Code:

{include
   file='resources/templates/gridview.tpl'
   id='series-listing'
   model="new SeriesModel('series')"
   css='item-view poster-listing layout'
   orientation=0
   columns=10
   rows=1}

Is there a patch or commit number for this fix?

Thanks
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Mon Jun 11, 2012 6:22 pm    Post subject: Reply with quote

If something goes wrong.....

3.1.10 did fail if tabs have been used to separate attributes.

The fix is now in the SVN trunk
Back to top
View user's profile Send private message
ecaron
Smarty n00b


Joined: 12 Jun 2012
Posts: 1

PostPosted: Tue Jun 12, 2012 9:12 pm    Post subject: Reply with quote

U.Tews wrote:
If something goes wrong.....

3.1.10 did fail if tabs have been used to separate attributes.

The fix is now in the SVN trunk


I can confirm this bug still exists in 3.1.10 but pulling from SVN (as of 4625) fixes it.
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