From 1a792bebc590cdcfc1b888a33209df92be51400d Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Feb 2011 19:56:06 +0000 Subject: 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 --- views/default/core/likes/display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/core/likes') 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) { -- cgit v1.2.3