diff options
author | Andrew Dolgov <[email protected]> | 2010-07-19 15:18:43 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-07-19 15:18:43 +0400 |
commit | 2f0903a62572315e43960fb1ec33c18f7b2a56f9 (patch) | |
tree | 2ed8598606fb744034e322df8387bc789c2f9f11 /functions.php | |
parent | ca75c2e2fd00ff81d6a74fe144b974e79addb8af (diff) |
add author info to generated feeds
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 9bf2bcace..627055f85 100644 --- a/functions.php +++ b/functions.php @@ -3667,7 +3667,11 @@ $rfc822_date = date('r', strtotime($line["updated"])); - print "<pubDate>$rfc822_date</pubDate>"; + print "<pubDate>$rfc822_date</pubDate>"; + + if ($line["author"]) { + print "<author>" . htmlspecialchars($line["author"]) . "</author>"; + } print "<title>" . htmlspecialchars($line["title"]) . "</title>"; |