xsl/portal2items: serve mgoblin_media from c3d2.de vhost (for SSL)

This commit is contained in:
Astro 2013-10-30 23:18:30 +01:00
parent 4826759d8a
commit 68fed79908
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@
<footer><xsl:value-of select="." disable-output-escaping="yes"/></footer>
</xsl:template>
<xsl:template match="atom:link[@rel='enclosure' and @href]" mode="gallery">
<content-image><xsl:value-of select="@href"/></content-image>
<content-image>
<xsl:text>//c3d2.de/mgoblin_media/</xsl:text>
<xsl:value-of select="substring-after(@href, 'http://media.c3d2.de/mgoblin_media/')"/>
</content-image>
</xsl:template>
<xsl:template match="atom:link[@rel='alternate' and @href]" mode="gallery">
<link><xsl:value-of select="@href"/></link>