diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-17 20:12:55 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-17 20:12:55 +0000 |
commit | fcc8efa279aab75419022bd8fc1b3134023c7806 (patch) | |
tree | ea9d162ea0cfe5969cef9dd960460b4c68a909a7 /views/rss/pageshells | |
parent | 63159053d7f94c4e32d48ebc0ab90733070e0215 (diff) | |
download | elgg-fcc8efa279aab75419022bd8fc1b3134023c7806.tar.gz elgg-fcc8efa279aab75419022bd8fc1b3134023c7806.tar.bz2 |
Updating RSS feeds to use proper views called with page_shells.
git-svn-id: http://code.elgg.org/elgg/trunk@6073 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/pageshells')
-rw-r--r-- | views/rss/pageshells/pageshell.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/views/rss/pageshells/pageshell.php b/views/rss/pageshells/pageshell.php deleted file mode 100644 index c62ac4aac..000000000 --- a/views/rss/pageshells/pageshell.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php -/** - * Elgg RSS output pageshell - * - * @package Elgg - * @subpackage Core - * @link http://elgg.org/ - * - */ - -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"; - -// Set title -if (empty($vars['title'])) { - $title = $vars['config']->sitename; -} else if (empty($vars['config']->sitename)) { - $title = $vars['title']; -} else { - $title = $vars['config']->sitename . ": " . $vars['title']; -} - -// Remove RSS from URL -$url = str_replace('?view=rss','', full_url()); -$url = str_replace('&view=rss','', $url); - -?> - -<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" <?php echo elgg_view('extensions/xmlns'); ?> > -<channel> - <title><![CDATA[<?php echo $title; ?>]]></title> - <link><?php echo htmlentities($url); ?></link> - <?php echo elgg_view('extensions/channel'); ?> - <?php - - echo $vars['body']; - - ?> -</channel> -</rss> |