aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-02 18:36:38 +0200
committerThomas Lange <code@nerdmind.de>2017-08-02 18:36:38 +0200
commitdc53b8aa2edcc60977609d8ed1184a50df0c128b (patch)
treef15e583419e12e2abf5a3a1213a69257cd4ffae1
parent973d37694aab6d1fe94d349ff84fb37c54646094 (diff)
downloadblog-dc53b8aa2edcc60977609d8ed1184a50df0c128b.tar.gz
blog-dc53b8aa2edcc60977609d8ed1184a50df0c128b.tar.xz
blog-dc53b8aa2edcc60977609d8ed1184a50df0c128b.zip
The <link> elements within <channel> and <image> should not contain the URL to the RSS feed itself, but rather to the corresponding HTML website. This is described in the RSS 2.0 specification.
-rw-r--r--template/standard/html/feed/main.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/standard/html/feed/main.php b/template/standard/html/feed/main.php
index c8dcc3c..0dbdfb1 100644
--- a/template/standard/html/feed/main.php
+++ b/template/standard/html/feed/main.php
@@ -27,7 +27,7 @@ switch($FEED['TYPE']) {
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title><?=$title?></title>
- <link><?=$self?></link>
+ <link><?=Application::getURL()?></link>
<language><?=$BLOGMETA['LANG']?></language>
<description><?=escapeHTML($BLOGMETA['DESC'])?></description>
@@ -36,7 +36,7 @@ switch($FEED['TYPE']) {
<image>
<title><?=$BLOGMETA_NAME?></title>
<url><?=Application::getTemplateURL('rsrc/logo.png')?></url>
- <link><?=$self?></link>
+ <link><?=Application::getURL()?></link>
</image>
<!-- Feed items of type "post" -->