diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-02-11 16:53:01 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-02-11 16:53:01 +0000 |
commit | 012288bdf6f4ad41c861504c05b2ac1cee834dd3 (patch) | |
tree | 39482829b98bcf1ac9e6e8b1ce74d8c80afc5a25 /actions/showgroup.php | |
parent | fc293545be13473d992b512141be233c2963f6da (diff) | |
parent | 22b10399aaa97061ed940f92f5b15f6aacfb1093 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php index 6df8dd306..c20941a35 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -292,37 +292,18 @@ class ShowgroupAction extends Action } /** - * Show a list of links to feeds this page produces + * Get a list of the feeds for this page * * @return void */ - function showExportData() - { - $fl = new FeedList($this); - $fl->show(array(0=>array('href'=>common_local_url('grouprss', - array('nickname' => $this->group->nickname)), - 'type' => 'rss', - 'version' => 'RSS 1.0', - 'item' => 'notices'))); - } - - /** - * Show a list of links to feeds this page produces - * - * @return void - */ - - function showFeeds() + function getFeeds() { $url = common_local_url('grouprss', array('nickname' => $this->group->nickname)); - $this->element('link', array('rel' => 'alternate', - 'href' => $url, - 'type' => 'application/rss+xml', - 'title' => sprintf(_('Notice feed for %s group'), + return array(new Feed(Feed::RSS1, $url, sprintf(_('Notice feed for %s group'), $this->group->nickname))); } |