RSS: fall back to LogoUrl for RssLogoUrl

This commit is contained in:
Markus Lude
2017-11-18 00:42:01 +01:00
parent 291d474327
commit ba421c2d6a
2 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ Changes for bugfix release:
* closing div for class wikibody was missing at some places, added
* put <hr> class wikilinerc inside of div for class wikirc
* fix EditHash
* RSS: fall back to LogoUrl for RssLogoUrl
Changes for release 1.2.0 (November 05, 2017):
* switch DTD to HTML 4.0.1 Transitional

View File

@@ -919,6 +919,15 @@ sub GetRcRss {
RSS
($headList, $items) = &GetRc(0, @_);
$rssHeader .= $headList;
if (! $RssLogoUrl) {
$RssLogoUrl = $FullUrl;
if ($LogoUrl =~ /^\//) {
$RssLogoUrl =~ s/^(http:\/\/[^\/]*)(\/.*)$/$1/;
$RssLogoUrl .= $LogoUrl;
} else {
$RssLogoUrl = $LogoUrl;
}
}
return <<RSS ;
$rssHeader
</rdf:Seq>