aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cache/cache.txt1
-rw-r--r--permissions.php43
-rw-r--r--views/default/settings/simplepie/edit.php5
-rw-r--r--views/default/widgets/feed_reader/view.php7
4 files changed, 5 insertions, 51 deletions
diff --git a/cache/cache.txt b/cache/cache.txt
deleted file mode 100644
index c30218d68..000000000
--- a/cache/cache.txt
+++ /dev/null
@@ -1 +0,0 @@
-This is where feeds are cached. \ No newline at end of file
diff --git a/permissions.php b/permissions.php
deleted file mode 100644
index 6f06a0268..000000000
--- a/permissions.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
- // Load Elgg engine
- require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
-
- ob_start();
-
-?>
-
-<style type="text/css">
-#permissions {
- margin:20px 0 0 0;
- font:14px/1.4em "Lucida Grande", Verdana, Arial, Helvetica, Clean, Sans, sans-serif;
- letter-spacing:0px;
- color:#333;
-}
-</style>
-
-<div class="contentWrapper" style="margin:0; min-height:340px;">
-
-<div id="elggreturn">
- <a href="javascript:history.go(-1)">Return to Tools Administration</a>
-</div>
-<div id="permissions">
-
-<?php
-
- if (is_writable('cache'))
- echo '<p>Good news. The cache directory is writeable.</p>';
- else
- echo '<p>The cache directory is not writeable.</p>';
-
- echo '<p>The permissions on the directory are ' . substr(decoct(fileperms('cache')),2) . '.</p>';
-
-?>
-</div>
-</div>
-
-<?php
- $content = ob_get_clean();
- $body = elgg_view_layout('one_column', $content);
- echo page_draw(null, $body);
-?>
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);