diff options
Diffstat (limited to 'core/controllers/album.php')
-rw-r--r-- | core/controllers/album.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/controllers/album.php b/core/controllers/album.php index 2b1ad067..abe9039a 100644 --- a/core/controllers/album.php +++ b/core/controllers/album.php @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Album_Controller extends Template_Controller { - public $template = "album.html"; + public $template = "page.html"; public function View($id) { $item = ORM::factory("item")->where("id", $id)->find(); @@ -26,6 +26,8 @@ class Album_Controller extends Template_Controller { return Kohana::show_404(); } + $this->template->content = new View("album.html"); + $this->template->set_global('item', $item); $this->template->set_global('children', $item->children()); $this->template->set_global('parents', $item->parents()); |