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
1 changed files with 5 additions and 1 deletions

View File

@ -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>";