From: Andrew Dolgov Date: Sun, 6 Oct 2013 07:28:06 +0000 (+0400) Subject: remove a few parser warnings from generated feeds X-Git-Tag: 1.11~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0ee126ee8faa40cb876f8b8a72c006ee89c2e17c;p=tt-rss.git remove a few parser warnings from generated feeds --- diff --git a/classes/handler/public.php b/classes/handler/public.php index c5a2a03c..a656ed63 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -123,7 +123,7 @@ class Handler_Public extends Handler { $tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true); $tpl->setVariable('ARTICLE_SOURCE_LINK', htmlspecialchars($line['site_url']), true); - $tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title']), true); + $tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title'] ? $line['feed_title'] : $feed_title), true); $tags = get_article_tags($line["id"], $owner_uid); diff --git a/templates/generated_feed.txt b/templates/generated_feed.txt index c1f921c4..5e35f9be 100644 --- a/templates/generated_feed.txt +++ b/templates/generated_feed.txt @@ -15,13 +15,15 @@ ${ARTICLE_ID} - ${ARTICLE_TITLE} + ${ARTICLE_TITLE} ${ARTICLE_UPDATED_ATOM} ${ARTICLE_AUTHOR} + ${ARTICLE_SOURCE_LINK} + ${ARTICLE_UPDATED_ATOM} ${ARTICLE_SOURCE_TITLE}