summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_block.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-23 23:56:05 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-06-23 23:56:05 -0600
commitc37fc39152ceeb5f4d51f9b297b313847bb445e5 (patch)
treeb27850ad7eff09217f4a9a34379ff3780cd1a19e /modules/gallery/helpers/gallery_block.php
parent200e17c884df8c2a265fab828be2ef869e580e35 (diff)
parentf9dbd4eb2feede5381d481f473bf7f0a77b49e4a (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/gallery_block.php')
-rw-r--r--modules/gallery/helpers/gallery_block.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php
index c3837f54..a10f2bbf 100644
--- a/modules/gallery/helpers/gallery_block.php
+++ b/modules/gallery/helpers/gallery_block.php
@@ -49,8 +49,9 @@ class gallery_block_Core {
$block->css_id = "gLogEntries";
$block->title = t("Log Entries");
$block->content = new View("admin_block_log_entries.html");
- $block->content->entries = ORM::factory("log")->orderby("timestamp", "DESC")->find_all(5);
- break;
+ $block->content->entries = ORM::factory("log")
+ ->orderby(array("timestamp" => "DESC", "id" => "DESC"))->find_all(5);
+ break;
case "stats":
$block->css_id = "gStats";