aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 21:08:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 21:08:58 +0000
commit1e5a6f5ba512107dc2c7f842d756015d04bc0999 (patch)
tree0cf13f2cd37ee5914eb9816f4a565118f88792fc
parentae6bea4b0b40a94edb0c5271d279f3bdcca6a0c1 (diff)
downloadelgg-1e5a6f5ba512107dc2c7f842d756015d04bc0999.tar.gz
elgg-1e5a6f5ba512107dc2c7f842d756015d04bc0999.tar.bz2
Fixes #3197 fixed the RSS feed for activity (river)
git-svn-id: http://code.elgg.org/elgg/trunk@8786 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/river.php2
-rw-r--r--pages/river.php6
-rw-r--r--views/rss/river/item.php (renamed from views/rss/core/river/body.php)0
-rw-r--r--views/rss/river/item/list.php17
4 files changed, 5 insertions, 20 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 50663c966..80925a21d 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -325,6 +325,8 @@ function elgg_get_river(array $options = array()) {
* @since 1.8.0
*/
function elgg_list_river(array $options = array()) {
+ global $autofeed;
+ $autofeed = true;
$defaults = array(
'offset' => (int) max(get_input('offset', 0), 0),
diff --git a/pages/river.php b/pages/river.php
index 728df50e1..7f2fce3d6 100644
--- a/pages/river.php
+++ b/pages/river.php
@@ -40,14 +40,14 @@ switch ($page_type) {
break;
}
-$content = elgg_view('core/river/filter', array('selector' => $selector));
+$activity = elgg_list_river($options);
-$content .= elgg_list_river($options);
+$content = elgg_view('core/river/filter', array('selector' => $selector));
$sidebar = elgg_view('core/river/sidebar');
$params = array(
- 'content' => $content,
+ 'content' => $content . $activity,
'sidebar' => $sidebar,
'buttons' => '',
'filter_context' => $page_filter,
diff --git a/views/rss/core/river/body.php b/views/rss/river/item.php
index f84e6ccf0..f84e6ccf0 100644
--- a/views/rss/core/river/body.php
+++ b/views/rss/river/item.php
diff --git a/views/rss/river/item/list.php b/views/rss/river/item/list.php
deleted file mode 100644
index 3b2fc6179..000000000
--- a/views/rss/river/item/list.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/**
- * @package Elgg
- * @subpackage Core
- */
-
-if (isset($vars['items']) && is_array($vars['items']) && !empty($vars['items'])) {
- $i = 1;
- foreach($vars['items'] as $item) {
- if ($i++ >= $vars['limit']) {
- break;
- }
-
- $entity = get_entity($item->object_guid);
- echo elgg_view_entity($entity);
- }
-}