summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-12 21:42:01 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-12 21:42:01 -0700
commit4166fbcd67d828d42b0b1d3d27730355ca8dbce0 (patch)
treedaca64991c62c9759dd5236b824eb4e84f121e28 /modules
parent8a089310ce6dc4e12ca80fb1f745156d9d77c6ed (diff)
Don't count the root as an album in the stats block. It'll just confuse our users.
Fixes ticket #369
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_block.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php
index 67900282..c3837f54 100644
--- a/modules/gallery/helpers/gallery_block.php
+++ b/modules/gallery/helpers/gallery_block.php
@@ -56,7 +56,8 @@ class gallery_block_Core {
$block->css_id = "gStats";
$block->title = t("Gallery Stats");
$block->content = new View("admin_block_stats.html");
- $block->content->album_count = ORM::factory("item")->where("type", "album")->count_all();
+ $block->content->album_count =
+ ORM::factory("item")->where("type", "album")->where("id <>", 1)->count_all();
$block->content->photo_count = ORM::factory("item")->where("type", "photo")->count_all();
break;