diff --git a/lang/en_utf8/forum.php b/lang/en_utf8/forum.php index 2f760470a7c..dd280f6364e 100644 --- a/lang/en_utf8/forum.php +++ b/lang/en_utf8/forum.php @@ -291,6 +291,10 @@ $string['unreadposts'] = 'Unread posts'; $string['unreadpostsnumber'] = '$a unread posts'; $string['unreadpostsone'] = '1 unread post'; $string['unsubscribe'] = 'Unsubscribe from this forum'; +$string['unsubscribeall'] = 'Unsubscribe from all forums'; +$string['unsubscribeallconfirm'] = 'You are subscribed to $a forums now. Do you really want to unsubscribe from all forums and disable forum auto-subscribe?'; +$string['unsubscribealldone'] = 'All your forum subscriptions were removed, you might still receive notifications from forums with forced subscription. If you do not want to receive any emails from this server please go to your profile and disable email address there.'; +$string['unsubscribeallempty'] = 'Sorry, you are not subscribed to any forums. If you do not want to receive any emails from this server please go to your profile and disable email address there.'; $string['unsubscribed'] = 'Unsubscribed'; $string['unsubscribeshort'] = 'Unsubscribe'; $string['usermarksread'] = 'Manual message read marking'; diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 6ba5328ced3..94ab2941cd1 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -903,8 +903,9 @@ function forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $u $posthtml .= forum_make_mail_post($course, $forum, $discussion, $post, $userfrom, $userto, false, $canreply, true, false); if ($canunsubscribe) { - $posthtml .= '