xsl/common: fix make-flattr-link news file ending

This commit is contained in:
Astro 2012-04-28 02:54:11 +02:00
parent 9509887e46
commit c7e622deec
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@
starts-with($newsfile, 'content/news/pentacast-') or
starts-with($newsfile, 'content/news/pentamusic-')">
<xsl:text>https://flattr.com/submit/auto?user_id=coloradio&amp;url=</xsl:text>
<xsl:value-of select="str:encode-uri(concat($baseurl, substring-after($newsfile, 'content/')), true())"/>
<xsl:value-of select="str:encode-uri(concat($baseurl, substring-before(substring-after($newsfile, 'content/'), '.xml'), '.html'), true())"/>
<xsl:text>&amp;title=</xsl:text>
<xsl:value-of select="str:encode-uri(document($newsfile)/item/@title, true())"/>
<xsl:text>&amp;description=</xsl:text>