Skip to content

Commit

Permalink
Respect $showfeedback when deleting groups and groupings. Merged from…
Browse files Browse the repository at this point in the history
… 19_STABLE
  • Loading branch information
stronk7 committed Feb 2, 2008
1 parent 1a4872b commit 14656d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Expand Up @@ -3498,8 +3498,8 @@ function remove_course_contents($courseid, $showfeedback=true) {

/// Delete any groups, removing members and grouping/course links first.
require_once($CFG->dirroot.'/group/lib.php');
groups_delete_groupings($courseid, true);
groups_delete_groups($courseid, true);
groups_delete_groupings($courseid, $showfeedback);
groups_delete_groups($courseid, $showfeedback);

/// Delete all related records in other tables that may have a courseid
/// This array stores the tables that need to be cleared, as
Expand Down

0 comments on commit 14656d1

Please sign in to comment.