diff options
author | Andrew Dolgov <[email protected]> | 2013-07-06 00:47:47 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-06 00:47:47 -0700 |
commit | d7a27413433080124c9f54668e3962185666bab2 (patch) | |
tree | 7f8e75810fe420764875718922a2776db88d31a8 | |
parent | 28b474c3c26bc93e81fd4f0e3cc07e74f2c6e013 (diff) | |
parent | ab10707facb7e338b2f6ed6a98865b9c754c5f32 (diff) |
Merge pull request #245 from shibuya246/master
add <source><title> to feed rss output as is common in other rss feeds
-rw-r--r-- | classes/handler/public.php | 2 | ||||
-rw-r--r-- | templates/generated_feed.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index f05beafd2..205853eae 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -110,6 +110,8 @@ class Handler_Public extends Handler { date(DATE_RFC822, strtotime($line["updated"])), true); $tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true); + + $tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title']), true); $tags = get_article_tags($line["id"], $owner_uid); diff --git a/templates/generated_feed.txt b/templates/generated_feed.txt index 6bfa50b1b..6a673e866 100644 --- a/templates/generated_feed.txt +++ b/templates/generated_feed.txt @@ -20,6 +20,7 @@ <content type="html"><![CDATA[${ARTICLE_CONTENT}]]></content> <updated>${ARTICLE_UPDATED_ATOM}</updated> <author><name>${ARTICLE_AUTHOR}</name></author> + <source><title>${ARTICLE_SOURCE_TITLE}</title></source> <!-- $BeginBlock category --> <category term="${ARTICLE_CATEGORY}"/> <!-- $EndBlock category --> |