summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_installer.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
commit097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch)
tree75e92a4edf717f2a6828a802f45485af06af3c71 /modules/comment/helpers/comment_installer.php
parentc4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff)
parentaeee88031fed7029c3320800d237b69993e8b6d4 (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/comment/helpers/comment_installer.php')
-rw-r--r--modules/comment/helpers/comment_installer.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index 9ca47f1a..7a32bf67 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -47,7 +47,8 @@ class comment_installer {
DEFAULT CHARSET=utf8;");
module::set_var("comment", "spam_caught", 0);
- module::set_version("comment", 2);
+ module::set_var("comment", "access_permissions", "everybody");
+ module::set_version("comment", 3);
}
static function upgrade($version) {
@@ -56,6 +57,11 @@ class comment_installer {
$db->query("ALTER TABLE {comments} CHANGE `state` `state` varchar(15) default 'unpublished'");
module::set_version("comment", 2);
}
+
+ if ($version == 2) {
+ module::set_var("comment", "access_permissions", "everybody");
+ module::set_version("comment", 3);
+ }
}
static function uninstall() {