aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/feed_reader
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2009-01-22 02:23:27 +0000
committercash <cash.costello@gmail.com>2009-01-22 02:23:27 +0000
commita2035fb399e36d1e2952b87d86fda4b3afa71d31 (patch)
tree4ab85f31bf02b19d30e81b1b41b8f2959c0b08fe /views/default/widgets/feed_reader
parent04768a9b0f5a62165ad2b0b4a8f7a4b0357560db (diff)
downloadelgg-a2035fb399e36d1e2952b87d86fda4b3afa71d31.tar.gz
elgg-a2035fb399e36d1e2952b87d86fda4b3afa71d31.tar.bz2
set cache directory
Diffstat (limited to 'views/default/widgets/feed_reader')
-rw-r--r--views/default/widgets/feed_reader/view.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php
index 948ed89cc..a4611772e 100644
--- a/views/default/widgets/feed_reader/view.php
+++ b/views/default/widgets/feed_reader/view.php
@@ -1,4 +1,5 @@
<?php
+// http://simplepie.org/support/viewtopic.php?id=643
global $CONFIG;
if (!class_exists('SimplePie'))
@@ -13,7 +14,9 @@
$num_items = $vars['entity']->num_items;
$post_date = $vars['entity']->post_date;
- $feed = new SimplePie($feed_url);
+ $cache_loc = $CONFIG->pluginspath . '/simplepie/cache';
+
+ $feed = new SimplePie($feed_url, $cache_loc);
$num_posts_in_feed = $feed->get_item_quantity();
if (!$num_posts_in_feed)