|
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 |
Soren Smarty n00b
Joined: 23 Dec 2011 Posts: 4
|
Posted: Sat Jun 09, 2012 12:51 pm Post subject: Multiline tags does not working anymore |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Jun 09, 2012 2:28 pm Post subject: |
|
|
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 |
|
Soren Smarty n00b
Joined: 23 Dec 2011 Posts: 4
|
Posted: Sat Jun 09, 2012 2:29 pm Post subject: |
|
|
Thanks |
|
Back to top |
|
ninix Smarty n00b
Joined: 11 Jun 2012 Posts: 1
|
Posted: Mon Jun 11, 2012 5:21 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Jun 11, 2012 6:22 pm Post subject: |
|
|
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 |
|
ecaron Smarty n00b
Joined: 12 Jun 2012 Posts: 1
|
Posted: Tue Jun 12, 2012 9:12 pm Post subject: |
|
|
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 |
|
|
|
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
|