summaryrefslogtreecommitdiff
path: root/core/helpers/core_block.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-21 03:56:53 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-21 03:56:53 +0000
commit3ce32dab5517c0774a65da3494b1c84d930818f1 (patch)
tree57acde0ef55cd121449212c69316ac04656be5b8 /core/helpers/core_block.php
parentf0b633334416ecb86de0356a06932fcf78efbfb7 (diff)
Report actual log entries in the "log entries" admin block.
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r--core/helpers/core_block.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index defde6ce..06354a10 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -55,6 +55,7 @@ class core_block_Core {
$block->id = "gLogEntries";
$block->title = _("Log Entries");
$block->content = new View("admin_block_log_entries.html");
+ $block->content->entries = ORM::factory("log")->orderby("timestamp", "DESC")->find_all(5);
$blocks[] = $block;
return implode("\n", $blocks);