aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:14:06 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-21 02:14:06 +0000
commitd8e7579df3f89587f1a43b64d9bd9a76b6842d5e (patch)
treecb610e400a5a4d47d2ad9a44f7942dc95fcd02e4 /mod
parent7f4e7c8a0a9bf500f9c888fc49aece9644fee8fd (diff)
downloadelgg-d8e7579df3f89587f1a43b64d9bd9a76b6842d5e.tar.gz
elgg-d8e7579df3f89587f1a43b64d9bd9a76b6842d5e.tar.bz2
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
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/views/default/blog/sidebar.php10
1 files changed, 7 insertions, 3 deletions
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);