aboutsummaryrefslogtreecommitdiff
path: root/views/rss/page/default.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-29 15:07:43 -0400
committercash <cash.costello@gmail.com>2011-10-29 15:07:43 -0400
commit4106d50727d5a56ec1442b16e182fbd9acc6b167 (patch)
tree461b4ed1050214bdd681b7368ba56d5cb5a4092e /views/rss/page/default.php
parent508000e9e3a49c0f659279ba916bde4a771ed777 (diff)
downloadelgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.gz
elgg-4106d50727d5a56ec1442b16e182fbd9acc6b167.tar.bz2
Fixes #3201 updates rss view type for core Elgg
Diffstat (limited to 'views/rss/page/default.php')
-rw-r--r--views/rss/page/default.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/views/rss/page/default.php b/views/rss/page/default.php
index cd94b0242..246ec972e 100644
--- a/views/rss/page/default.php
+++ b/views/rss/page/default.php
@@ -4,7 +4,6 @@
*
* @package Elgg
* @subpackage Core
- *
*/
header("Content-Type: text/xml");
@@ -12,7 +11,7 @@ header("Content-Type: text/xml");
// allow caching as required by stupid MS products for https feeds.
header('Pragma: public', TRUE);
-echo "<?xml version='1.0'?>\n";
+echo "<?xml version='1.0'?>";
// Set title
if (empty($vars['title'])) {
@@ -22,8 +21,8 @@ if (empty($vars['title'])) {
}
// Remove RSS from URL
-$url = str_replace('?view=rss','', full_url());
-$url = str_replace('&view=rss','', $url);
+$url = str_replace('?view=rss', '', full_url());
+$url = str_replace('&view=rss', '', $url);
?>
@@ -32,11 +31,9 @@ $url = str_replace('&view=rss','', $url);
<title><![CDATA[<?php echo $title; ?>]]></title>
<link><?php echo htmlentities($url); ?></link>
<description></description>
- <?php echo elgg_view('extensions/channel'); ?>
- <?php
-
- echo $vars['body'];
-
- ?>
+<?php
+ echo elgg_view('extensions/channel');
+ echo $vars['body'];
+?>
</channel>
</rss>