1
0

Updated for changes in module lifecycle

This commit is contained in:
Bharat Mediratta 2009-05-26 19:51:04 +00:00
parent a22554674c
commit 1120b87a9f
3 changed files with 5 additions and 9 deletions

View File

@ -251,10 +251,10 @@ class Admin_Developer_Controller extends Admin_Controller {
$album_count = ORM::factory("item")->where("type", "album")->count_all();
$photo_count = ORM::factory("item")->where("type", "photo")->count_all();
$v->comment_installed = module::is_installed("comment");
$v->comment_installed = module::is_active("comment");
$comment_count = empty($v->comment_installed) ? 0 : ORM::factory("comment")->count_all();
$v->tag_installed = module::is_installed("tag");
$v->tag_installed = module::is_active("tag");
$tag_count = empty($v->tag_installed) ? 0 : ORM::factory("tag")->count_all();
$v->album_count = t2("%count album", "%count albums", $album_count);

View File

@ -25,8 +25,4 @@ class developer_installer {
module::set_version("developer", 1);
}
}
static function uninstall() {
module::delete("developer");
}
}

View File

@ -188,7 +188,7 @@ class developer_task_Core {
private static function _add_album_or_photo($desired_type=null) {
srand(time());
$parents = ORM::factory("item")->where("type", "album")->find_all()->as_array();
$owner_id = module::is_installed("user") ? user::active()->id : null;
$owner_id = user::active()->id;
$test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]");
@ -220,7 +220,7 @@ class developer_task_Core {
return;
}
if (module::is_installed("akismet")) {
if (module::is_active("akismet")) {
akismet::$test_mode = 1;
}