diff options
author | cash <cash.costello@gmail.com> | 2009-01-22 02:23:27 +0000 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2009-01-22 02:23:27 +0000 |
commit | a2035fb399e36d1e2952b87d86fda4b3afa71d31 (patch) | |
tree | 4ab85f31bf02b19d30e81b1b41b8f2959c0b08fe /views | |
parent | 04768a9b0f5a62165ad2b0b4a8f7a4b0357560db (diff) | |
download | elgg-a2035fb399e36d1e2952b87d86fda4b3afa71d31.tar.gz elgg-a2035fb399e36d1e2952b87d86fda4b3afa71d31.tar.bz2 |
set cache directory
Diffstat (limited to 'views')
-rw-r--r-- | views/default/widgets/feed_reader/view.php | 5 |
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) |