diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-06 19:56:06 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-06 19:56:06 +0000 |
commit | 1a792bebc590cdcfc1b888a33209df92be51400d (patch) | |
tree | 87e913b42593b74713a9280b7a7ea3ca4bb2f93e /mod/groups/views/default | |
parent | cfaa89dd2d32bc3c17d55def95a1fd49187e1667 (diff) | |
download | elgg-1a792bebc590cdcfc1b888a33209df92be51400d.tar.gz elgg-1a792bebc590cdcfc1b888a33209df92be51400d.tar.bz2 |
moved the count comments and likes functions into the ElggEntity class
git-svn-id: http://code.elgg.org/elgg/trunk@8047 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r-- | mod/groups/views/default/object/groupforumtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index c6f9da4b4..6d4902c87 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -28,7 +28,7 @@ $date = elgg_view_friendly_time($topic->time_created); $comments_link = ''; $comments_text = ''; -$num_comments = elgg_count_comments($topic); +$num_comments = $topic->countComments(); if ($num_comments != 0) { $last_comment = $topic->getAnnotations("generic_comment", 1, 0, "desc"); $commenter = $last_comment[0]->getOwnerEntity(); |