--- a/documents/rss.xml.php +++ b/documents/rss.xml.php @@ -14,6 +14,7 @@ $TestFeed->setDescription('disclosurelo.gs Newest Entries - All Agencies'); $TestFeed->setChannelElement('language', 'en-us'); $TestFeed->setChannelElement('pubDate', date(DATE_RSS, time())); + //Retriving informations from database $idtoname = Array(); $agenciesdb = $server->get_db('disclosr-agencies'); @@ -31,6 +32,7 @@ $newItem->setLink("http://disclosurelo.gs/view.php?id=".$row->value->_id); $newItem->setDate(strtotime($row->value->date)); $newItem->setDescription(displayLogEntry($row,$idtoname)); + $newItem->setAuthor($idtoname[$row->value->agencyID]); $newItem->addElement('guid', "http://disclosurelo.gs/view.php?id=".$row->value->_id,array('isPermaLink'=>'true')); //Now add the feed item $TestFeed->addItem($newItem);