add author info to generated feeds

This commit is contained in:
Andrew Dolgov 2010-07-19 15:18:43 +04:00
parent ca75c2e2fd
commit 2f0903a625

View file

@ -3667,7 +3667,11 @@
$rfc822_date = date('r', strtotime($line["updated"])); $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>" . print "<title>" .
htmlspecialchars($line["title"]) . "</title>"; htmlspecialchars($line["title"]) . "</title>";