summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-07-19 15:18:43 +0400
committerAndrew Dolgov <[email protected]>2010-07-19 15:18:43 +0400
commit2f0903a62572315e43960fb1ec33c18f7b2a56f9 (patch)
tree2ed8598606fb744034e322df8387bc789c2f9f11
parentca75c2e2fd00ff81d6a74fe144b974e79addb8af (diff)
add author info to generated feeds
-rw-r--r--functions.php6
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>";