diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/settings/simplepie/edit.php | 5 | ||||
-rw-r--r-- | views/default/widgets/feed_reader/view.php | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/views/default/settings/simplepie/edit.php b/views/default/settings/simplepie/edit.php index 4583394c3..d67034aa4 100644 --- a/views/default/settings/simplepie/edit.php +++ b/views/default/settings/simplepie/edit.php @@ -2,14 +2,9 @@ global $CONFIG; $compat_url = $CONFIG->wwwroot . 'mod/simplepie/sp_compatibility_test.php'; -$permit_url = $CONFIG->wwwroot . 'mod/simplepie/permissions.php'; ?> <p> <a href="<?php echo $compat_url; ?>">Compatibility Test</a> </p> - -<p> -<a href="<?php echo $permit_url; ?>">Permissions Test for Cache</a> -</p> diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php index 56bf4482d..a8d589f98 100644 --- a/views/default/widgets/feed_reader/view.php +++ b/views/default/widgets/feed_reader/view.php @@ -15,9 +15,12 @@ if ($feed_url) { $num_items = $vars['entity']->num_items; $post_date = $vars['entity']->post_date; - $cache_loc = $CONFIG->pluginspath . '/simplepie/cache'; + $cache_location = $CONFIG->dataroot . '/simplepie_cache/'; + if (!file_exists($cache_location)) { + mkdir($cache_location, 0777); + } - $feed = new SimplePie($feed_url, $cache_loc); + $feed = new SimplePie($feed_url, $cache_location); // doubles timeout if going through a proxy //$feed->set_timeout(20); |