mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-05 14:40:44 -04:00
Use the code version when installing a module that has no installer,
instead of hardcoding version 1. Fixes #1589.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user