]> git.wh0rd.org - tt-rss.git/commitdiff
add author info to generated feeds
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 19 Jul 2010 11:18:43 +0000 (15:18 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 19 Jul 2010 11:18:43 +0000 (15:18 +0400)
functions.php

index 9bf2bcacecefece6294075a0b3e6b6e819a3ff79..627055f85a9cecaaa26d35099eb61e98518de8c3 100644 (file)
 
                        $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>";