diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 16:51:25 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 16:51:25 -0800 |
commit | e1e1e860cd1b19ebef491f0c0f82a3cd18e63721 (patch) | |
tree | 5746aa0920f4f406831cf675d3134733c222db1c /modules | |
parent | 4fc5d50eb83f29c0a28ce16b9ff22179fd3f2c98 (diff) |
Use the code version when installing a module that has no installer,
instead of hardcoding version 1. Fixes #1589.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php index 7c5578af..6efe6162 100644 --- a/modules/gallery/helpers/module.php +++ b/modules/gallery/helpers/module.php @@ -168,7 +168,7 @@ class module_Core { if (method_exists($installer_class, "install")) { call_user_func_array(array($installer_class, "install"), array()); } else { - module::set_version($module_name, 1); + module::set_version($module_name, module::available()->$module_name->code_version); } // Set the weight of the new module, which controls the order in which the modules are |