From 17e887631c3882e7822304f4dbcb85f51843109a Mon Sep 17 00:00:00 2001 From: GregThib Date: Thu, 23 Jul 2015 16:05:26 +0200 Subject: [PATCH] AuthorName in the output (usefull for RSS readers) Add the Author's name in the output fields. --- bridges/Rue89Bridge.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php index d357c3a..1938c19 100644 --- a/bridges/Rue89Bridge.php +++ b/bridges/Rue89Bridge.php @@ -38,6 +38,7 @@ class Rue89Bridge extends BridgeAbstract{ if($limit < 5) { $item = new \Item(); $item->title = Rue89StripCDATA($element->find('title', 0)->innertext); + $item->name = Rue89StripCDATA($element->find('dc:creator', 0)->innertext); $item->uri = str_replace('#commentaires', '', Rue89StripCDATA($element->find('comments', 0)->plaintext)); $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext); $item->content = Rue89ExtractContent($item->uri);