mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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.
This commit is contained in:
parent
0d5a9a94c1
commit
5a39def902
1 changed files with 10 additions and 0 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue