• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed No error in template

bart

Active member
#1
This should produce an error when saving the template:

Code:
<xen:if is="{$forum.node_id}==27">
 
  <xen:include template="name1"/>
 
<xen:else is="{$forum.node_id}==30"/>
 
  <xen:include template="name2"/>
 
<xen:else is="{$forum.node_id}==32"/>
 
  <xen:include template="name3"/>
 
</xen:if>
As you see I did "else" instead of "elseif". Using one else does give the error. using two of them doesn't.

it does give this error on the page:

"Parse error: syntax error, unexpected T_ELSE in /data/www/xen/library/XenForo/Template/Abstract.php(265) : eval()'d code on line 70"