diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-14 13:39:53 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-14 13:39:53 -0400 |
commit | 0d5bd3a636218a18b0fa81c6897614e37943455c (patch) | |
tree | 3dc7b211ac71e0d169b01e4a2a2a7e130e50b854 /lib/utils.php | |
parent | ded448fd10b1383c5c48eb90e7659550b1db7b01 (diff) |
small things added to firstrun page and settings
Diffstat (limited to 'lib/utils.php')
-rw-r--r-- | lib/utils.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/utils.php b/lib/utils.php index e67ea21f5..5def91e4a 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -13,7 +13,7 @@ namespace OCA\News; // load SimplePie library -//TODO: is this file a suitable place for the following require? +//TODO: is this a suitable place for the following require? require_once('news/3rdparty/SimplePie/autoloader.php'); class Utils { @@ -44,7 +44,10 @@ class Utils { $itemTitle = $spitem->get_title(); $itemGUID = $spitem->get_id(); $itemBody = $spitem->get_content(); - $items[] = new Item($itemUrl, $itemTitle, $itemGUID, $itemBody); + $itemAuthor = $spitem->get_author(); + $item = new Item($itemUrl, $itemTitle, $itemGUID, $itemBody); + $item->setAuthor($itemAuthor->get_name()); + $items[] = $item; } } |