From 406830cbf8e99919d0d1845e0440c2063cceb301 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 10:54:29 +0000 Subject: use some real stats --- 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 571453a0..0e9ee27b 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -63,6 +63,8 @@ class core_block_Core { $block->id = "gStats"; $block->title = _("Gallery Stats"); $block->content = new View("admin_block_stats.html"); + $block->content->album_count = ORM::factory("item")->where("type", "album")->count_all(); + $block->content->photo_count = ORM::factory("item")->where("type", "photo")->count_all(); $blocks[] = $block; $block = new Block(); -- cgit v1.2.3