Skip to content

Commit

Permalink
Removed the &format from the url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Dammark committed Mar 19, 2015
1 parent cdb8db0 commit 46c2095
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions MediaHelper/_MediaHelper.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@
<xsl:variable name="data" select="umb:JsonToXml(umbracoFile)" />
<xsl:variable name="src" select="$data/src" />

<xsl:variable name="format">
<xsl:choose>
<xsl:when test="contains($src, '.jpg')">
<xsl:value-of select="'jpg'" />
</xsl:when>
<xsl:when test="contains($src, '.png')">
<xsl:value-of select="'png'" />
</xsl:when>
<xsl:when test="contains($src, '.gif')">
<xsl:value-of select="'gif'" />
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="focalPointTop" select="$data/focalPoint/top" />
<xsl:variable name="focalPointLeft" select="$data/focalPoint/left" />

Expand All @@ -77,7 +64,6 @@
<xsl:value-of select="$src" />
<xsl:value-of select="$origin" />
<xsl:value-of select="concat('&amp;quality=', $quality)" />
<xsl:value-of select="concat('&amp;format=', $format)" />
</xsl:attribute>
<xsl:attribute name="width">
<xsl:value-of select="$data/crops[alias = $cropset]/width" />
Expand Down Expand Up @@ -128,4 +114,4 @@
</xsl:template>

<xsl:template match="File" />
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 46c2095

Please sign in to comment.