aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2009-03-02 23:03:09 +0000
committercash <cash.costello@gmail.com>2009-03-02 23:03:09 +0000
commit4bf65154f0828f6d3d4161945fa49565cb17f9b9 (patch)
treecf991d151e789e98f379f1c0fc6fade07c96a7c0 /views/default
parenteddc6002da1bf08e5a9e765c199653b28b3df3b4 (diff)
downloadelgg-4bf65154f0828f6d3d4161945fa49565cb17f9b9.tar.gz
elgg-4bf65154f0828f6d3d4161945fa49565cb17f9b9.tar.bz2
updated to Elgg 1.5 - still need to work on html formatting and images
Diffstat (limited to 'views/default')
-rw-r--r--views/default/widgets/feed_reader/view.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php
index a4611772e..a069a5a1f 100644
--- a/views/default/widgets/feed_reader/view.php
+++ b/views/default/widgets/feed_reader/view.php
@@ -1,5 +1,5 @@
+<div class="contentWrapper">
<?php
-// http://simplepie.org/support/viewtopic.php?id=643
global $CONFIG;
if (!class_exists('SimplePie'))
@@ -19,9 +19,13 @@
$feed = new SimplePie($feed_url, $cache_loc);
$num_posts_in_feed = $feed->get_item_quantity();
- if (!$num_posts_in_feed)
- echo 'Cannot find feed. Check the feed url.';
-
+
+ // only display errors to profile owner
+ if (get_loggedin_userid() == page_owner())
+ {
+ if (!$num_posts_in_feed)
+ echo 'Cannot find feed. Check the feed url.';
+ }
?>
<div class="simplepie_blog_title">
<h2><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h2>
@@ -49,7 +53,9 @@
<?php
} else {
-
- echo '<p>' . elgg_echo('simplepie:notset') . '</p>';
+
+ if (get_loggedin_userid() == page_owner())
+ echo '<p>' . elgg_echo('simplepie:notset') . '</p>';
}
?>
+</div>