diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 05:59:37 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 05:59:37 +0000 |
commit | 7e5f59bcb7682896657dd11a530dc25412ef3cdc (patch) | |
tree | 290ecce0dd5fd7536e132381832281e23f0cf75d /core | |
parent | 326fa1dd27e116ace49155487a6c95ba0ef82231 (diff) |
Add children_count to album/photo controllers for consistency with tags
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/albums.php | 3 | ||||
-rw-r--r-- | core/controllers/photos.php | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 4c117ac4..c2935c09 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -35,7 +35,8 @@ class Albums_Controller extends Items_Controller { $template->set_global("page_type", "album"); $template->set_global('page_size', $page_size); $template->set_global('item', $item); - $template->set_global('children', $item->children($page_size, ($page-1) * $page_size)); + $template->set_global('children', $item->children($page_size, ($page - 1) * $page_size)); + $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)); 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)); |