summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php
index 652f22f9b..fc2631412 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -1,7 +1,8 @@
<?php
-$feed = new OC_News_Feed( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' );
$mapper = new OC_News_FeedMapper();
+$feed = $mapper->fetch( 'http://algorithmsforthekitchen.com/blog/?feed=rss2' );
+echo "<br>" . $feed->getTitle() . "<br>";
$mapper->insert($feed);
$feed = $mapper->find($feed->getId());
echo "<br>" . $feed->getTitle() . "<br>";