summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-20 10:54:29 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-20 10:54:29 +0000
commit406830cbf8e99919d0d1845e0440c2063cceb301 (patch)
tree2118debd60fbb847916e2ebb3ec64056bc5fbb7a /core/helpers
parent64f993db6f70554d5dd0e3fe2db672abc4e971de (diff)
use some real stats
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/core_block.php2
1 files changed, 2 insertions, 0 deletions
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();