summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_block.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-21 02:02:41 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-21 02:02:41 +0000
commit78ce8615f3047e7f25d3d1642a7ff9713695705b (patch)
tree235094610fd8558ce61bb5b062ae209229b66130 /modules/comment/helpers/comment_block.php
parentf257f1b35085f7dcb5146c6c1ffaa629e99d4cfc (diff)
Implement the "recent comments" block with real data.
Diffstat (limited to 'modules/comment/helpers/comment_block.php')
-rw-r--r--modules/comment/helpers/comment_block.php2
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