Use the code version when installing a module that has no installer,

instead of hardcoding version 1.  Fixes #1589.
This commit is contained in:
Bharat Mediratta
2011-01-08 16:51:25 -08:00
parent 4fc5d50eb8
commit e1e1e860cd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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