summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-06-16 14:29:24 -0700
committerZach Copley <zach@status.net>2010-06-16 14:29:24 -0700
commitd3d499879c4d01bde46033a3a98f9190ea18cb63 (patch)
tree21d057a2e7d188b44239a1883a30248bfe0b2aac /actions/showgroup.php
parent327ed5b87e492380bc651ed03159ae7cd3a4a493 (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.php10
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');