From 8f87a030c8abe447feac22022fa6223248979601 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 23:19:12 +0000 Subject: Implement the photo stream with the most recently uploaded photos. --- core/helpers/core_block.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/helpers/core_block.php') 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(); -- cgit v1.2.3