GetHtmlHeader(): modified patch RssLinkInHeader:

link to RSS only on normal pages (no action stuff)
This commit is contained in:
Markus Lude
2016-10-25 20:06:23 +02:00
parent 39995d1c0c
commit 33bef450e8
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
Changes for bugfix release 1.0.5:
* added patch RssLinkInHeader (but only for RecentChanges)
* added patch RssLinkInHeader (but only for normal pages)
contributed by UngarPeter
* added patch DoPageLockMinorTweak
contributed by JuanMtnezPineda

View File

@@ -1381,7 +1381,7 @@ sub GetHtmlHeader {
if ($SiteBase ne "") {
$html .= qq(<BASE HREF="$SiteBase">\n);
}
if (($id eq $RCName) || (T($RCName) eq $id) || (T($id) eq $RCName)) {
unless ($action) {
$html .= qq(<link rel="alternate" title="$SiteName RSS" href=")
. $ScriptName . &ScriptLinkChar() . &UriEscape("action=rss&days=$RssDays")
. qq(" type="application/rss+xml">\n);