diff options
Diffstat (limited to 'core/controllers/albums.php')
| -rw-r--r-- | core/controllers/albums.php | 3 |
1 files changed, 2 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)); |
