aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 19:56:06 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-06 19:56:06 +0000
commit1a792bebc590cdcfc1b888a33209df92be51400d (patch)
tree87e913b42593b74713a9280b7a7ea3ca4bb2f93e /views/default
parentcfaa89dd2d32bc3c17d55def95a1fd49187e1667 (diff)
downloadelgg-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 'views/default')
-rw-r--r--views/default/core/likes/display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/core/likes/display.php b/views/default/core/likes/display.php
index 680486863..5b59c7215 100644
--- a/views/default/core/likes/display.php
+++ b/views/default/core/likes/display.php
@@ -38,7 +38,7 @@ if (!elgg_annotation_exists($guid, 'likes')) {
}
$list = '';
-$num_of_likes = elgg_count_likes($vars['entity']);
+$num_of_likes = $vars['entity']->countLikes();
if ($num_of_likes) {
// display the number of likes
if ($num_of_likes == 1) {