diff options
author | cash <cash.costello@gmail.com> | 2010-07-04 19:43:29 +0000 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2010-07-04 19:43:29 +0000 |
commit | 25581d5c26fb630dad768c82395c73f0e4b8ccf8 (patch) | |
tree | 157e5551353aa3cd03653e9abc3fa908d0bb336b /views/default | |
parent | 16da0ce0f606397012c65950b07262fbecb2fc84 (diff) | |
download | elgg-25581d5c26fb630dad768c82395c73f0e4b8ccf8.tar.gz elgg-25581d5c26fb630dad768c82395c73f0e4b8ccf8.tar.bz2 |
moved cache to data directory for better security
Diffstat (limited to 'views/default')
-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); |