From d8e7579df3f89587f1a43b64d9bd9a76b6842d5e Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Mar 2011 02:14:06 +0000 Subject: Refs #2090 removed elgg_view_latest_comments() and replaced it with a page elements view git-svn-id: http://code.elgg.org/elgg/trunk@8801 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/sidebar.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mod/blog/views') diff --git a/mod/blog/views/default/blog/sidebar.php b/mod/blog/views/default/blog/sidebar.php index 63ed85c0b..4eb5cf443 100644 --- a/mod/blog/views/default/blog/sidebar.php +++ b/mod/blog/views/default/blog/sidebar.php @@ -7,10 +7,14 @@ // fetch & display latest comments if ($vars['page'] == 'all') { - echo elgg_view_latest_comments(0, 'object', 'blog'); + echo elgg_view('page/elements/comments_block', array( + 'subtypes' => 'blog', + )); } elseif ($vars['page'] == 'owner') { - // @todo - what we want is the latest comments on this user's blog posts - elgg does not support this - echo elgg_view_latest_comments(elgg_get_page_owner_guid(), 'object', 'blog'); + echo elgg_view('page/elements/comments_block', array( + 'subtypes' => 'blog', + 'owner_guid' => elgg_get_page_owner_guid(), + )); } echo elgg_view('blog/sidebar/archives', $vars); -- cgit v1.2.3