diff options
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/albums.php | 1 | ||||
-rw-r--r-- | core/controllers/photos.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index f9e0be2c..4c117ac4 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -32,6 +32,7 @@ class Albums_Controller extends Items_Controller { $page = $this->input->get("page", "1"); $theme = new Theme($theme_name, $template); + $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)); diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 1d995de8..2020aad3 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -28,6 +28,7 @@ class Photos_Controller extends Items_Controller { // @todo: this needs to be data-driven $theme = new Theme("default", $template); + $template->set_global("page_type", "photo"); $template->set_global('item', $item); $template->set_global('children', $item->children()); $template->set_global('parents', $item->parents()); |