Skip to content

Commit 0ee126e

Browse files
author
Andrew Dolgov
committed
remove a few parser warnings from generated feeds
1 parent f44d599 commit 0ee126e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

classes/handler/public.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function generate_syndicated_feed($owner_uid, $feed, $is_cat,
123123
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true);
124124

125125
$tpl->setVariable('ARTICLE_SOURCE_LINK', htmlspecialchars($line['site_url']), true);
126-
$tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title']), true);
126+
$tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title'] ? $line['feed_title'] : $feed_title), true);
127127

128128
$tags = get_article_tags($line["id"], $owner_uid);
129129

templates/generated_feed.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
<entry>
1616
<id>${ARTICLE_ID}</id>
1717
<link href="${ARTICLE_LINK}" rel="alternate" type="text/html"/>
18-
<title>${ARTICLE_TITLE}</title>
18+
<title type="html">${ARTICLE_TITLE}</title>
1919
<summary type="html"><![CDATA[${ARTICLE_EXCERPT}]]></summary>
2020
<content type="html"><![CDATA[${ARTICLE_CONTENT}]]></content>
2121
<updated>${ARTICLE_UPDATED_ATOM}</updated>
2222
<author><name>${ARTICLE_AUTHOR}</name></author>
2323
<source>
24+
<id>${ARTICLE_SOURCE_LINK}</id>
2425
<link rel="self" href="${ARTICLE_SOURCE_LINK}"/>
26+
<updated>${ARTICLE_UPDATED_ATOM}</updated>
2527
<title>${ARTICLE_SOURCE_TITLE}</title></source>
2628
<!-- $BeginBlock category -->
2729
<category term="${ARTICLE_CATEGORY}"/>

0 commit comments

Comments
 (0)