summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php
index d4cc21082..88d1b9fb8 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -3,8 +3,10 @@
$feed = new OC_News_Feed( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' );
$mapper = new OC_News_FeedMapper();
$mapper->insert($feed);
-$mapper->find($feed->getId());
+$feed = $mapper->find($feed->getId());
echo "<br>" . $feed->getTitle() . "<br>";
+$items = $feed->getItems();
+
/*
$item = $feed->get_item(1);