Merge branch 'wip-MDL-50824-master' of https://github.com/cdsmith-umn/moodle
This commit is contained in:
@@ -137,7 +137,8 @@ class core_message_external extends external_api {
|
||||
if ($success && empty($contactlist[$message['touserid']]) && !empty($blocknoncontacts)) {
|
||||
// The user isn't a contact and they have selected to block non contacts so this message won't be sent.
|
||||
$success = false;
|
||||
$errormessage = get_string('userisblockingyounoncontact', 'message');
|
||||
$errormessage = get_string('userisblockingyounoncontact', 'message',
|
||||
fullname(core_user::get_user($message['touserid'])));
|
||||
}
|
||||
|
||||
//now we can send the message (at least try)
|
||||
|
||||
Reference in New Issue
Block a user