diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
commit | cc912935731c216a57e4c291548ec503a0c1607e (patch) | |
tree | 0ebfdf14a4f8cd183df31cde5be8e3226641d580 /modules/gallery/helpers/module.php | |
parent | 5b84919d6e55a8c43f60cf8b695c3696340d001b (diff) | |
parent | eb32e1052df4da268f01a84b809d756d9c9b85b7 (diff) |
Merge branch 'bharat_dev' of git@github.com:gallery/gallery3 into bharat_dev
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r-- | modules/gallery/helpers/module.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php index 595f600b..f680ff6a 100644 --- a/modules/gallery/helpers/module.php +++ b/modules/gallery/helpers/module.php @@ -120,17 +120,17 @@ class module_Core { } /** - * Check that the module can be installed. (i.e. all the prerequistes exist) + * Check that the module can be activated. (i.e. all the prerequistes exist) * @param string $module_name * @return array an array of warning or error messages to be displayed */ - static function check_environment($module_name) { + static function can_activate($module_name) { module::_add_to_path($module_name); $messages = array(); $installer_class = "{$module_name}_installer"; - if (method_exists($installer_class, "check_environment")) { - $messages = call_user_func(array($installer_class, "check_environment")); + if (method_exists($installer_class, "can_activate")) { + $messages = call_user_func(array($installer_class, "can_activate")); } // Remove it from the active path |