• 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>


Well-known member
I have this 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">-->
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.