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

Not a bug Template compiler does not respect HTML comments for <xen:foreach>

tyteen4a03

Well-known member
#1
I have this code:
Code:
<xen:title>{xen:phrase 3ps_usergroup_ranks_usergroup_ranks_listing}</xen:title>
 
<div class="baseHtml">
<fieldset class="xenForm">
<ol class="section ugList">
<!--<xen:foreach loop="$userGroupRanks" value="$userGroupRank">-->
things
<!--</xen:foreach>-->
</ol>
</fieldset>
</div>
However, when I view the page, I get:

Template Errors: 3ps_usergroup_ranks_help_usergroup_ranks_listing
Invalid argument supplied for foreach() in places\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 12:
11: <!--';
12: foreach ($userGroupRanks AS $userGroupRank)
13: {

EDIT: Just tested <xen:if> and <xen:username> as well, the template compiler went ahead and compiled them.