summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorcolings <colings@example.com>2011-01-09 11:43:45 -0600
committercolings <colings@example.com>2011-01-09 11:43:45 -0600
commit02a349f68ac480d5b1a630e14b4f2e3558328673 (patch)
tree25bf25960b6811d8dbcbed6f6c9d63de7c03bd4e /modules/gallery/helpers/module.php
parentc2a1ea64eda2bf3e22ecaf4df4714c091bc5d7c4 (diff)
parentde5b06ae7442db2c7a8999c0c806997248ddb151 (diff)
Merge remote branch 'upstream/master'
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r--modules/gallery/helpers/module.php2
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