From bba5289035eebb0c4a9c6c5f3d1598b538fc3586 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 11 Nov 2008 07:39:20 +0000 Subject: Change Album and Photo controllers to set the user object as a global variable; change the header so it links to the user controllers; and add the user controllers which don't do anything. --- core/controllers/album.php | 1 + core/controllers/photo.php | 1 + 2 files changed, 2 insertions(+) (limited to 'core/controllers') 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(); -- cgit v1.2.3