diff options
author | Federico Marani <federico.marani@ymail.com> | 2009-03-07 13:54:54 +0000 |
---|---|---|
committer | Federico Marani <federico.marani@ymail.com> | 2009-03-07 13:54:54 +0000 |
commit | bab3e1b8586f42bc1f0a5f96b6990d67c6b74446 (patch) | |
tree | 559729d3330991c0c68da96350b71434ca4f6f87 /actions/showgroup.php | |
parent | a389f157baddafa91347c27194805580b1373e30 (diff) | |
parent | 13c183e2f4e0738233658ca79103bbe4a6d57992 (diff) |
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
Conflicts:
lib/util.php
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php index 7bc68fbc6..c20941a35 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -244,7 +244,7 @@ class ShowgroupAction extends Action if ($this->group->location) { $this->elementStart('dl', 'entity_location'); $this->element('dt', null, _('Location')); - $this->element('dd', 'location', $this->group->location); + $this->element('dd', 'label', $this->group->location); $this->elementEnd('dl'); } @@ -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))); } |