diff options
author | Zach Copley <zach@status.net> | 2010-06-16 14:29:24 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-06-16 14:29:24 -0700 |
commit | d3d499879c4d01bde46033a3a98f9190ea18cb63 (patch) | |
tree | 21d057a2e7d188b44239a1883a30248bfe0b2aac /actions/showgroup.php | |
parent | 327ed5b87e492380bc651ed03159ae7cd3a4a493 (diff) |
- More useful group info from api/statusnet/group/show
- Add statusnet:group_info tag to group Atom feeds
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r-- | actions/showgroup.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php index 3d369e9eb..17c37e4d7 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -430,14 +430,6 @@ class ShowgroupAction extends GroupDesignAction function showStatistics() { - // XXX: WORM cache this - $members = $this->group->getMembers(); - $members_count = 0; - /** $member->count() doesn't work. */ - while ($members->fetch()) { - $members_count++; - } - $this->elementStart('div', array('id' => 'entity_statistics', 'class' => 'section')); @@ -451,7 +443,7 @@ class ShowgroupAction extends GroupDesignAction $this->elementStart('dl', 'entity_members'); $this->element('dt', null, _('Members')); - $this->element('dd', null, (is_int($members_count)) ? $members_count : '0'); + $this->element('dd', null, $this->group->getMemberCount()); $this->elementEnd('dl'); $this->elementEnd('div'); |