summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/helpers/comment_installer.php1
-rw-r--r--modules/digibug/helpers/digibug_installer.php1
-rw-r--r--modules/exif/helpers/exif_installer.php1
-rw-r--r--modules/g2_import/helpers/g2_import_installer.php1
-rw-r--r--modules/gallery/helpers/gallery_installer.php2
-rw-r--r--modules/gallery/helpers/module.php3
-rw-r--r--modules/image_block/helpers/image_block_installer.php1
-rw-r--r--modules/info/helpers/info_installer.php1
-rw-r--r--modules/notification/helpers/notification_installer.php2
-rw-r--r--modules/rest/helpers/rest_installer.php1
-rw-r--r--modules/search/helpers/search_installer.php1
-rw-r--r--modules/server_add/helpers/server_add_installer.php1
-rw-r--r--modules/slideshow/helpers/slideshow_installer.php1
-rw-r--r--modules/tag/helpers/tag_installer.php1
-rw-r--r--modules/user/helpers/user_installer.php1
-rw-r--r--modules/watermark/helpers/watermark_installer.php1
16 files changed, 1 insertions, 19 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index 6dbd31cf..136f96ef 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -49,7 +49,6 @@ class comment_installer {
module::set_var("comment", "spam_caught", 0);
module::set_var("comment", "access_permissions", "everybody");
module::set_var("comment", "rss_visible", "all");
- module::set_version("comment", 7);
}
static function upgrade($version) {
diff --git a/modules/digibug/helpers/digibug_installer.php b/modules/digibug/helpers/digibug_installer.php
index b2e529d7..be88b5ec 100644
--- a/modules/digibug/helpers/digibug_installer.php
+++ b/modules/digibug/helpers/digibug_installer.php
@@ -30,7 +30,6 @@ class digibug_installer {
module::set_var("digibug", "company_id", "3153");
module::set_var("digibug", "event_id", "8491");
- module::set_version("digibug", 2);
}
static function upgrade($version) {
diff --git a/modules/exif/helpers/exif_installer.php b/modules/exif/helpers/exif_installer.php
index f4c2aa3b..75d0f835 100644
--- a/modules/exif/helpers/exif_installer.php
+++ b/modules/exif/helpers/exif_installer.php
@@ -29,7 +29,6 @@ class exif_installer {
PRIMARY KEY (`id`),
KEY(`item_id`))
DEFAULT CHARSET=utf8;");
- module::set_version("exif", 1);
}
static function activate() {
diff --git a/modules/g2_import/helpers/g2_import_installer.php b/modules/g2_import/helpers/g2_import_installer.php
index b0c14425..c7569819 100644
--- a/modules/g2_import/helpers/g2_import_installer.php
+++ b/modules/g2_import/helpers/g2_import_installer.php
@@ -31,7 +31,6 @@ class g2_import_installer {
KEY `g2_id` (`g2_id`))
DEFAULT CHARSET=utf8;");
- module::set_version("g2_import", 2);
mkdir(VARPATH . "modules/g2_import");
}
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index d4c4de14..7f10cdee 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -315,8 +315,6 @@ class gallery_installer {
module::set_var("gallery", "timezone", null);
module::set_var("gallery", "lock_timeout", 1);
module::set_var("gallery", "movie_extract_frame_time", 3);
-
- module::set_version("gallery", 55);
}
static function upgrade($version) {
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
diff --git a/modules/image_block/helpers/image_block_installer.php b/modules/image_block/helpers/image_block_installer.php
index 8558fe51..b177b971 100644
--- a/modules/image_block/helpers/image_block_installer.php
+++ b/modules/image_block/helpers/image_block_installer.php
@@ -21,7 +21,6 @@ class image_block_installer {
static function install() {
module::set_var("image_block", "image_count", "1");
- module::set_version("image_block", $version = 3);
}
static function upgrade($version) {
diff --git a/modules/info/helpers/info_installer.php b/modules/info/helpers/info_installer.php
index 560af15c..43c216dc 100644
--- a/modules/info/helpers/info_installer.php
+++ b/modules/info/helpers/info_installer.php
@@ -25,7 +25,6 @@ class info_installer {
module::set_var("info", "show_owner", 1);
module::set_var("info", "show_name", 1);
module::set_var("info", "show_captured", 1);
- module::set_version("info", 2);
}
static function upgrade($version) {
diff --git a/modules/notification/helpers/notification_installer.php b/modules/notification/helpers/notification_installer.php
index 58435641..f6b05c18 100644
--- a/modules/notification/helpers/notification_installer.php
+++ b/modules/notification/helpers/notification_installer.php
@@ -36,8 +36,6 @@ class notification_installer {
`text` text,
PRIMARY KEY (`id`))
DEFAULT CHARSET=utf8;");
-
- module::set_version("notification", 2);
}
static function upgrade($version) {
diff --git a/modules/rest/helpers/rest_installer.php b/modules/rest/helpers/rest_installer.php
index df7484fe..96f8acfa 100644
--- a/modules/rest/helpers/rest_installer.php
+++ b/modules/rest/helpers/rest_installer.php
@@ -29,7 +29,6 @@ class rest_installer {
UNIQUE KEY(`user_id`))
DEFAULT CHARSET=utf8;");
module::set_var("rest", "allow_guest_access", false);
- module::set_version("rest", 3);
}
static function upgrade($version) {
diff --git a/modules/search/helpers/search_installer.php b/modules/search/helpers/search_installer.php
index 78dbce38..c9e8f26c 100644
--- a/modules/search/helpers/search_installer.php
+++ b/modules/search/helpers/search_installer.php
@@ -30,7 +30,6 @@ class search_installer {
FULLTEXT INDEX (`data`))
ENGINE=MyISAM
DEFAULT CHARSET=utf8;");
- module::set_version("search", 1);
}
static function activate() {
diff --git a/modules/server_add/helpers/server_add_installer.php b/modules/server_add/helpers/server_add_installer.php
index e843fc79..b62bbcfa 100644
--- a/modules/server_add/helpers/server_add_installer.php
+++ b/modules/server_add/helpers/server_add_installer.php
@@ -30,7 +30,6 @@ class server_add_installer {
`task_id` int(9) NOT NULL,
PRIMARY KEY (`id`))
DEFAULT CHARSET=utf8;");
- module::set_version("server_add", 4);
server_add::check_config();
}
diff --git a/modules/slideshow/helpers/slideshow_installer.php b/modules/slideshow/helpers/slideshow_installer.php
index d283487d..22bd9534 100644
--- a/modules/slideshow/helpers/slideshow_installer.php
+++ b/modules/slideshow/helpers/slideshow_installer.php
@@ -20,7 +20,6 @@
class slideshow_installer {
static function install() {
module::set_var("slideshow", "max_scale", 0);
- module::set_version("slideshow", 2);
}
static function upgrade($version) {
diff --git a/modules/tag/helpers/tag_installer.php b/modules/tag/helpers/tag_installer.php
index f80a9de3..1fd18f3e 100644
--- a/modules/tag/helpers/tag_installer.php
+++ b/modules/tag/helpers/tag_installer.php
@@ -37,7 +37,6 @@ class tag_installer {
KEY(`item_id`, `id`))
DEFAULT CHARSET=utf8;");
module::set_var("tag", "tag_cloud_size", 30);
- module::set_version("tag", 3);
}
static function upgrade($version) {
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index e28af69a..67f6a3d5 100644
--- a/modules/user/helpers/user_installer.php
+++ b/modules/user/helpers/user_installer.php
@@ -138,6 +138,5 @@ class user_installer {
access::allow($registered, "view_full", $root);
module::set_var("user", "minimum_password_length", 5);
- module::set_version("user", 4);
}
} \ No newline at end of file
diff --git a/modules/watermark/helpers/watermark_installer.php b/modules/watermark/helpers/watermark_installer.php
index 5df780a1..13338912 100644
--- a/modules/watermark/helpers/watermark_installer.php
+++ b/modules/watermark/helpers/watermark_installer.php
@@ -33,7 +33,6 @@ class watermark_installer {
DEFAULT CHARSET=utf8;");
@mkdir(VARPATH . "modules/watermark");
- module::set_version("watermark", 2);
}
static function uninstall() {