diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 23:19:12 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 23:19:12 +0000 |
commit | 8f87a030c8abe447feac22022fa6223248979601 (patch) | |
tree | 18d4b5ffc07177e8f37709dbe74878874e20fbdf /core/helpers/core_block.php | |
parent | 99c481897b8d1574bf984a1d5ea732fe63482fe0 (diff) |
Implement the photo stream with the most recently uploaded photos.
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r-- | core/helpers/core_block.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 0e9ee27b..79fc0bf4 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -47,6 +47,8 @@ class core_block_Core { $block->id = "gPhotoStream"; $block->title = _("Photo Stream"); $block->content = new View("admin_block_photo_stream.html"); + $block->content->photos = + ORM::factory("item")->where("type", "photo")->orderby("created", "desc")->find_all(10); $blocks[] = $block; $block = new Block(); |