summaryrefslogtreecommitdiffstats
path: root/lib/utils.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-02 23:39:19 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-02 23:39:19 -0400
commit72c730bf5fb21f58589a836483585dabd6866520 (patch)
treea57dab8dcf88ce5a4f1172ba89663aa52947fdb8 /lib/utils.php
parentf8f6fd3d778fe95bac15e52747ff5b1f6461c136 (diff)
button to add feed; selection of a feed
Diffstat (limited to 'lib/utils.php')
-rw-r--r--lib/utils.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/utils.php b/lib/utils.php
index e7122bf69..16f39f413 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -10,6 +10,10 @@
*
*/
+// load SimplePie library
+//TODO: is this file a suitable place for the following require?
+require_once(OC::$APPSROOT . '/apps/news/3rdparty/SimplePie/SimplePieAutoloader.php');
+
class OC_News_Utils {
/**
@@ -18,6 +22,7 @@ class OC_News_Utils {
* @returns
*/
public static function fetch($url){
+ //TODO: handle the case where fetching of the feed fails
$spfeed = new SimplePie_Core();
$spfeed->set_feed_url( $url );
$spfeed->enable_cache( false );