aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/views/default')
-rw-r--r--mod/pages/views/default/object/page_top.php2
1 files changed, 1 insertions, 1 deletions
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)";