Updated for changes in module lifecycle
This commit is contained in:
parent
a22554674c
commit
1120b87a9f
@ -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);
|
||||
|
@ -25,8 +25,4 @@ class developer_installer {
|
||||
module::set_version("developer", 1);
|
||||
}
|
||||
}
|
||||
|
||||
static function uninstall() {
|
||||
module::delete("developer");
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user