diff options
author | Nathan Kinkade <nath@nkinka.de> | 2012-10-16 21:14:48 +0000 |
---|---|---|
committer | Nathan Kinkade <nath@nkinka.de> | 2012-10-16 21:14:48 +0000 |
commit | a12ede0a39515b7b97aa8a3415f60d1c9752e3e6 (patch) | |
tree | dbcb339d37e812479874142f5ab120e715d0349c /modules/comment/helpers | |
parent | b76a96ff97b73427e33bf6323cdc703a73612124 (diff) | |
parent | 31681bf834d5dc560b9898d9c30903f08ecb1966 (diff) |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment_installer.php | 13 |
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() { |