mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Change the check_environment method in the module helper and the module installers to can_activate to reflect that it is doing more than just checking the environment.
This commit is contained in:
@@ -42,7 +42,7 @@ class Admin_Modules_Controller extends Admin_Controller {
|
||||
if ($info->active && !$desired && module::is_active($module_name)) {
|
||||
$messages = array_merge($messages, module::can_deactivate($module_name));
|
||||
} else if (!$info->active && $desired && !module::is_active($module_name)) {
|
||||
$messages = array_merge($messages, module::check_environment($module_name));
|
||||
$messages = array_merge($messages, module::can_activate($module_name));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user