aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/views')
-rw-r--r--mod/file/views/default/object/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index 89367feb3..5fcd2a023 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -37,7 +37,7 @@ $file_icon = elgg_view('file/icon', array(
$tags = elgg_view('output/tags', array('tags' => $file->tags));
$date = elgg_view_friendly_time($file->time_created);
-$comments_count = elgg_count_comments($file);
+$comments_count = $file->countComments();
//only display if there are commments
if ($comments_count != 0) {
$text = elgg_echo("comments") . " ($comments_count)";