Revert "fixed bug preventing second parameter in conditionals"

This reverts commit 80ed214e12.
master
Taylor Cordes 2018-06-25 16:21:12 -04:00
parent 80ed214e12
commit 1628cc0aa6
1 changed files with 3 additions and 4 deletions

View File

@ -354,15 +354,14 @@
]
">
<!-- select the nearest condition -->
<xsl:variable name="cond" as="element( lvmp:condition )"
select="ancestor::lvmp:condition[1]" />
<xsl:variable name="cond" select="ancestor::lvmp:condition[1]" />
<xsl:text>( ( </xsl:text>
<xsl:text>$contract->isTruthy( </xsl:text>
<xsl:apply-templates select="$cond/lvmp:when/lvmp:*" mode="lvmp:render" />
<xsl:if test="$cond/lvmp:cmp/text() != ''">
<xsl:if test="$cond/lvmp:cmp/*">
<xsl:text>,</xsl:text>
<xsl:apply-templates select="$cond/lvmp:cmp/text()" mode="lvmp:render" />
<xsl:apply-templates select="$cond/lvmp:cmp/lvmp:*" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? </xsl:text>