From 6b03b798f3be23c83d0587f180341929c49af886 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 30 Nov 2008 21:39:23 +0000 Subject: Move rearrange HTML generation into welcome.php so that we gracefully handle the case where the DB is not installed yet. --- 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 b6c4f381..c29a5aaf 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -36,11 +36,13 @@ class Welcome_Controller extends Template_Controller { $this->template->deepest_photo = ORM::factory("item") ->where("type", "photo")->orderby("level", "desc")->find(); $this->template->album_tree = $this->_load_album_tree(); + $this->template->rearrange_html = rearrange::get_html()->render(); } catch (Exception $e) { $this->template->album_count = 0; $this->template->photo_count = 0; $this->template->deepest_photo = null; $this->template->album_tree = array(); + $this->template->rearrange_html = ""; } $this->_load_user_info(); -- cgit v1.2.3