summaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 00:40:49 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 00:40:49 +0100
commitac857ca7431f8d1ac562e085c8ef672bd10de9c8 (patch)
tree6d963a7b65592236e62b0fce5ecac12241da55e0 /app/models/Feed.php
parent4a2b17d54ab3714c4f567a43a7a2e701cd9a7b49 (diff)
Correction html_only_entity_decode author
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index ae3a9af83..628b63df9 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -274,7 +274,7 @@ class Feed extends Model {
foreach ($feed->get_items () as $item) {
$title = self::html_only_entity_decode (strip_tags ($item->get_title ()));
- $author = self::html_only_entity_decode ($item->get_author ());
+ $author = $item->get_author ();
$link = $item->get_permalink ();
$date = strtotime ($item->get_date ());
@@ -304,7 +304,7 @@ class Feed extends Model {
$this->id (),
$item->get_id (),
!is_null ($title) ? $title : '',
- !is_null ($author) ? $author->name : '',
+ !is_null ($author) ? self::html_only_entity_decode ($author->name) : '',
!is_null ($content) ? $content : '',
!is_null ($link) ? $link : '',
$date ? $date : time ()