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 --- mod/pages/views/default/object/page_top.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/pages') diff --git a/mod/pages/views/default/object/page_top.php b/mod/pages/views/default/object/page_top.php index 9770dce23..89ef25572 100644 --- a/mod/pages/views/default/object/page_top.php +++ b/mod/pages/views/default/object/page_top.php @@ -39,7 +39,7 @@ $date = elgg_view_friendly_time($annotation->time_created); $editor_text = elgg_echo('pages:strapline', array($date, $editor_link)); $tags = elgg_view('output/tags', array('tags' => $page->tags)); -$comments_count = elgg_count_comments($page); +$comments_count = $page->countComments(); //only display if there are commments if ($comments_count != 0 && !$revision) { $text = elgg_echo("comments") . " ($comments_count)"; -- cgit v1.2.3