summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/controllers/album.php1
-rw-r--r--core/controllers/photo.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/controllers/album.php b/core/controllers/album.php
index 9357c986..63290853 100644
--- a/core/controllers/album.php
+++ b/core/controllers/album.php
@@ -34,6 +34,7 @@ class Album_Controller extends Item_Controller {
$template->set_global('children', $item->children($page_size, ($page-1) * $page_size));
$template->set_global('parents', $item->parents());
$template->set_global('theme', $theme);
+ $template->set_global('user', Session::instance()->get('user', null));
$template->content = new View("album.html");
print $template->render();
diff --git a/core/controllers/photo.php b/core/controllers/photo.php
index b56c29b9..78287afa 100644
--- a/core/controllers/photo.php
+++ b/core/controllers/photo.php
@@ -29,6 +29,7 @@ class Photo_Controller extends Item_Controller {
$template->set_global('children', $item->children());
$template->set_global('parents', $item->parents());
$template->set_global('theme', $theme);
+ $template->set_global('user', Session::instance()->get('user', null));
$template->content = new View("photo.html");
print $template->render();