From 5a39def902ddd24db19a9bc0bc8d468af6211e2d Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Sun, 17 Sep 2006 02:27:13 +0000 Subject: [PATCH] re-merge of "Merged fix from 1.6 for Bug #5131 - RSS Feeds and Moving Discussions." Originally by vyshane - got dropped accidentally in one of the biiiiig roles commits. --- mod/forum/discuss.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 545944a36d..846171fb1a 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -64,6 +64,16 @@ add_to_log($course->id, "forum", "move discussion", "discuss.php?d=$discussion->id", "$discussion->id"); } $discussionmoved = true; + require_once('rsslib.php'); + require_once($CFG->libdir.'/rsslib.php'); + + // Delete the RSS files for the 2 forums because we want to force + // the regeneration of the feeds since the discussions have been + // moved. + if (!forum_rss_delete_file($forum) || !forum_rss_delete_file($fromforum)) { + notify('Could not purge the cached RSS feeds for the source and/or'. + 'destination forum(s) - check your file permissionsforums'); + } } else { error("You can't move to that forum - it doesn't exist!"); } -- 2.39.5