From 7e5f59bcb7682896657dd11a530dc25412ef3cdc Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 27 Nov 2008 05:59:37 +0000 Subject: Add children_count to album/photo controllers for consistency with tags --- core/controllers/photos.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 2020aad3..2e0c63f5 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -31,6 +31,7 @@ class Photos_Controller extends Items_Controller { $template->set_global("page_type", "photo"); $template->set_global('item', $item); $template->set_global('children', $item->children()); + $template->set_global('children_count', $item->children_count()); $template->set_global('parents', $item->parents()); $template->set_global('theme', $theme); $template->set_global('user', Session::instance()->get('user', null)); -- cgit v1.2.3