diff options
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment_installer.php | 13 | ||||
-rw-r--r-- | modules/comment/helpers/comment_rss.php | 2 |
2 files changed, 12 insertions, 3 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() { diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php index be1968dc..1a7ed53c 100644 --- a/modules/comment/helpers/comment_rss.php +++ b/modules/comment/helpers/comment_rss.php @@ -36,7 +36,7 @@ class comment_rss_Core { } if ($item && comment_rss::feed_visible("per_item")) { - $feeds["comment/item/$item->id"] = + $feeds["comment/per_item/$item->id"] = t("Comments on %title", array("title" => html::purify($item->title))); } return $feeds; |