Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "MDL-32125 mod_forum: updating subscription mode not reflected"

This reverts commit bee9656.
  • Loading branch information...
commit 60cb1a5f70db425dcb3545eea881a7da92f521d6 1 parent 464df58
@stronk7 stronk7 authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 mod/forum/lib.php
View
7 mod/forum/lib.php
@@ -216,13 +216,6 @@ function forum_update_instance($forum, $mform) {
$DB->update_record('forum', $forum);
- $modcontext = get_context_instance(CONTEXT_MODULE, $forum->coursemodule);
- if (($forum->forcesubscribe == FORUM_INITIALSUBSCRIBE) && ($oldforum->forcesubscribe <> $forum->forcesubscribe)) {
- $users = forum_get_potential_subscribers($modcontext, 0, 'u.id, u.email', '');
- foreach ($users as $user) {
- forum_subscribe($user->id, $forum->id);
- }
- }
forum_grade_item_update($forum);
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.