summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-12 23:02:53 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-12 23:02:53 +0000
commit8f4fec1f3d4d039547e8b318debebdfce9d3313d (patch)
tree24243cc458a09eae2d7ec4ad65e08e2e7ac68231
parent43e626f99e24c9ba12719f464e71e6f28cff7938 (diff)
Change the check from class_exists to module::is_installed
-rw-r--r--core/controllers/welcome.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index 10903f67..575156e5 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -193,7 +193,7 @@ class Welcome_Controller extends Template_Controller {
function add_albums_and_photos($count, $desired_type=null) {
srand(time());
$parents = ORM::factory("item")->where("type", "album")->find_all()->as_array();
- $owner_id = class_exists("user") ? user::active()->id : null;
+ $owner_id = module::is_installed("user") ? user::active()->id : null;
$test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]");