From 03c60e2b55791945e04573d9e9eb2bbdc869ded3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 1 Jan 2009 00:28:00 +0000 Subject: Add deepest album link --- core/controllers/welcome.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/controllers') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index b83ea40d..b3a12952 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -37,6 +37,8 @@ class Welcome_Controller extends Template_Controller { $this->template->photo_count = ORM::factory("item")->where("type", "photo")->count_all(); $this->template->deepest_photo = ORM::factory("item") ->where("type", "photo")->orderby("level", "desc")->find(); + $this->template->deepest_album = ORM::factory("item") + ->where("type", "album")->orderby("level", "desc")->find(); $this->template->album_tree = $this->_load_album_tree(); $this->template->add_photo_html = $this->_get_add_photo_html(); } catch (Exception $e) { -- cgit v1.2.3