From 00513a71d2091eba3110164e506c2231972a1584 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 06:17:35 +0000 Subject: Report the number of photos/albums --- core/controllers/welcome.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/controllers/welcome.php') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index adce7443..1c90842c 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -24,6 +24,14 @@ class Welcome_Controller extends Template_Controller { $this->template->syscheck = new View("welcome_syscheck.html"); $this->template->syscheck->errors = $this->_get_config_errors(); $this->template->syscheck->modules = $this->_read_modules(); + $this->template->album_count = 0; + $this->template->photo_count = 0; + try { + $this->template->album_count = ORM::factory("item")->where("type", "album")->count_all(); + $this->template->photo_count = ORM::factory("item")->where("type", "photo")->count_all(); + } catch (Exception $e) { + } + $this->_create_directories(); } -- cgit v1.2.3