summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-01-31 19:55:53 -0500
committerBharat Mediratta <bharat@menalto.com>2013-01-31 19:55:53 -0500
commit93963422505ecc790af62ae0503f301145debac3 (patch)
treed83680fc65fee9bec06bf90917189a2ac1c2709e /modules/gallery/helpers/module.php
parentcb08f6cc13bfd07aed2e6588cad6a6cc655b73f6 (diff)
Drop the requirement to have the install() function set the module
version. It's redundant. Fixes #1985.
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r--modules/gallery/helpers/module.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index f4ab5571..df258e87 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -175,9 +175,8 @@ class module_Core {
$installer_class = "{$module_name}_installer";
if (method_exists($installer_class, "install")) {
call_user_func_array(array($installer_class, "install"), array());
- } else {
- module::set_version($module_name, module::available()->$module_name->code_version);
}
+ 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
// loaded. By default, new modules are installed at the end of the priority list. Since the