Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

This reverts commit 6a5e3c1.
  • Loading branch information...
commit ba15c14fee856ae4a1386792cf0df3a582902793 1 parent 04ec524
@stronk7 stronk7 authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 mod/forum/lib.php
View
8 mod/forum/lib.php
@@ -209,14 +209,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.