diff options
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment_block.php | 2 |
1 files changed, 2 insertions, 0 deletions
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 |