aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-01 17:53:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-01 17:53:14 +0000
commita6db51b8398e2b70e7f8253936c3288c6df87e9d (patch)
treebdbc9c43eae53976ab9121d827c169ad9e96a0af /engine/lib
parent38c773d6215fd99e0d9fc0d4a38bf28a4f1a3d2f (diff)
downloadelgg-a6db51b8398e2b70e7f8253936c3288c6df87e9d.tar.gz
elgg-a6db51b8398e2b70e7f8253936c3288c6df87e9d.tar.bz2
fixed the function for viewing latest comments
git-svn-id: http://code.elgg.org/elgg/trunk@7802 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/views.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 878db04d8..951210f5a 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1054,13 +1054,13 @@ function elgg_view_comments($entity, $add_comment = true) {
*/
function elgg_view_latest_comments($owner_guid, $type = 'object', $subtype = '', $number = 4) {
$title = elgg_echo('generic_comments:latest');
- $comments = get_annotations(0, $type, $subtype, "generic_comment", "", $owner_guid, 4, 0, "desc");
+ $comments = get_annotations(0, $type, $subtype, 'generic_comment', '', 0, $number, 0, 'desc', 0, 0, $owner_guid);
$body = elgg_view('layout/objects/list', array(
'items' => $comments,
'pagination' => false,
'list_class' => 'elgg-latest-comments',
));
- echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
+ return elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
}
/**
* Wrapper function for the image block display pattern.