From 78ce8615f3047e7f25d3d1642a7ff9713695705b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 21 Dec 2008 02:02:41 +0000 Subject: Implement the "recent comments" block with real data. --- modules/comment/helpers/comment_block.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php index 03a2cb11..47025a6c 100644 --- a/modules/comment/helpers/comment_block.php +++ b/modules/comment/helpers/comment_block.php @@ -33,6 +33,8 @@ class comment_block_Core { $block->id = "gRecentComments"; $block->title = _("Recent Comments"); $block->content = new View("admin_block_recent_comments.html"); + $block->content->comments = + ORM::factory("comment")->orderby("created", "DESC")->limit(5)->find_all(); return $block; } } \ No newline at end of file -- cgit v1.2.3