aboutsummaryrefslogtreecommitdiff
path: root/views/rss/river/item.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-10-29 15:10:48 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-10-29 15:10:48 -0700
commit6971caddb2245bec34fd23927f6f093e5b28c1ea (patch)
treea8c78a2b8f79201e04696687ad095e81eeee1805 /views/rss/river/item.php
parent3e4641537ff66b7e634f83e7a3386df9273ec9ff (diff)
parent9046723db0c21cd0995ec87e69734bd1f0edcae6 (diff)
downloadelgg-6971caddb2245bec34fd23927f6f093e5b28c1ea.tar.gz
elgg-6971caddb2245bec34fd23927f6f093e5b28c1ea.tar.bz2
Merge branch 'master' of github.com:Elgg/Elgg
Diffstat (limited to 'views/rss/river/item.php')
-rw-r--r--views/rss/river/item.php27
1 files changed, 15 insertions, 12 deletions
diff --git a/views/rss/river/item.php b/views/rss/river/item.php
index f84e6ccf0..fa2914eff 100644
--- a/views/rss/river/item.php
+++ b/views/rss/river/item.php
@@ -6,27 +6,30 @@
*/
$item = $vars['item'];
-$view = $item->getView();
-
$name = $item->getSubjectEntity()->name;
-$body = elgg_view($item->getView(), array('item' => $item), false, false, 'default');
-$body = "$name $body";
+$name = htmlspecialchars($name, ENT_NOQUOTES, 'UTF-8');
+$title = elgg_echo('river:update', array($name));
-$title = strip_tags($body);
$timestamp = date('r', $item->getPostedTime());
+$body = elgg_view('river/elements/summary', $vars, false, false, 'default');
+
$object = $item->getObjectEntity();
if ($object) {
$url = htmlspecialchars($object->getURL());
} else {
- $url = elgg_get_site_url() . 'activity';
+ $url = elgg_normalize_url('activity');
}
-?>
+$html = <<<__HTML
<item>
- <guid isPermaLink='true'><?php echo $url; ?></guid>
- <pubDate><?php echo $timestamp; ?></pubDate>
- <link><?php echo $url; ?></link>
- <title><![CDATA[<?php echo $title; ?>]]></title>
- <description><![CDATA[<?php echo ($body); ?>]]></description>
+ <guid>$item->id</guid>
+ <pubDate>$timestamp</pubDate>
+ <link>$url</link>
+ <title><![CDATA[$title]]></title>
+ <description><![CDATA[$body]]></description>
</item>
+
+__HTML;
+
+echo $html;