aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 02:37:26 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-08 02:37:26 +0000
commit15eaacc12ad0ffe19d42b6d2508c4469ba005bfd (patch)
tree0efa084b8a015bbc36eb25d8d5a017e7786b5a3c /mod/blog/views
parentd7adaddab7189bc493d22d96fec424aedca09b11 (diff)
downloadelgg-15eaacc12ad0ffe19d42b6d2508c4469ba005bfd.tar.gz
elgg-15eaacc12ad0ffe19d42b6d2508c4469ba005bfd.tar.bz2
Fixes #2189 created the object/list view with semantic markup
git-svn-id: http://code.elgg.org/elgg/trunk@7560 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/blog/sidebar_menu.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/mod/blog/views/default/blog/sidebar_menu.php b/mod/blog/views/default/blog/sidebar_menu.php
index 3d343d80e..7dfbeb1bc 100644
--- a/mod/blog/views/default/blog/sidebar_menu.php
+++ b/mod/blog/views/default/blog/sidebar_menu.php
@@ -28,10 +28,7 @@ $page_owner = elgg_get_page_owner();
echo elgg_view("blogs/sidebar", array("object_type" => 'blog'));
// fetch & display latest comments on all blog posts
-$comments = get_annotations(0, "object", "blog", "generic_comment", "", 0, 4, 0, "desc");
-$title = elgg_echo('generic_comments:latest');
-$body = elgg_view('comments/latest', array('comments' => $comments));
-echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
+echo elgg_view_latest_comments(0, 'object', 'blog');
// only show archives for users or groups.
// This is a limitation of the URL schema.