summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-01 00:28:00 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-01 00:28:00 +0000
commit03c60e2b55791945e04573d9e9eb2bbdc869ded3 (patch)
treea2d13eb7d07e83010f1314a5546dd1e95bcfb263 /core/controllers
parentcd1d02375400972f2a719852d44c094ab500e8b6 (diff)
Add deepest album link
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/welcome.php2
1 files changed, 2 insertions, 0 deletions
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) {