summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_installer.php
diff options
context:
space:
mode:
authorMike Mayer <mikemayer67@vmwishes.com>2012-10-18 22:32:49 -0700
committerMike Mayer <mikemayer67@vmwishes.com>2012-10-18 22:32:49 -0700
commit381bd0e569140ebc74eaf7971771d34a5a625f62 (patch)
tree6984f8c8fda3340f9726b62fe1779277566f21fc /modules/comment/helpers/comment_installer.php
parenteb32966d4bc670d89eac1ccf9f0e3be202b52ef1 (diff)
parent31681bf834d5dc560b9898d9c30903f08ecb1966 (diff)
Merge pull request #2 from gallery/master
Retrofit gallery/master into mikemayer67/gallery3
Diffstat (limited to 'modules/comment/helpers/comment_installer.php')
-rw-r--r--modules/comment/helpers/comment_installer.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php
index cbb8c783..f7bebe69 100644
--- a/modules/comment/helpers/comment_installer.php
+++ b/modules/comment/helpers/comment_installer.php
@@ -48,8 +48,8 @@ class comment_installer {
module::set_var("comment", "spam_caught", 0);
module::set_var("comment", "access_permissions", "everybody");
- module::set_var("comment", "rss_visible", "both");
- module::set_version("comment", 6);
+ module::set_var("comment", "rss_visible", "all");
+ module::set_version("comment", 7);
}
static function upgrade($version) {
@@ -91,6 +91,15 @@ class comment_installer {
module::clear_var("comment", "rss_available");
module::set_version("comment", $version = 6);
}
+
+ // In version 6 we accidentally left the install value of "rss_visible" to "both" when it
+ // should have been "all"
+ if ($version == 6) {
+ if (module::get_var("comment", "rss_visible") == "both") {
+ module::set_var("comment", "rss_visible", "all");
+ }
+ module::set_version("comment", $version = 7);
+ }
}
static function uninstall() {