Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-65819-38' of https://github.com/paulholden/moodle i…
…nto MOODLE_38_STABLE
  • Loading branch information
vmdef committed Jul 22, 2020
2 parents 3ecf4df + 37f3c31 commit 5aacc83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions message/classes/api.php
Expand Up @@ -2659,8 +2659,10 @@ public static function create_contact_request(int $userid, int $requesteduserid)
$userto = \core_user::get_user($requesteduserid);
$url = new \moodle_url('/message/pendingcontactrequests.php');

$subject = get_string('messagecontactrequestsnotificationsubject', 'core_message', $userfromfullname);
$fullmessage = get_string('messagecontactrequestsnotification', 'core_message', $userfromfullname);
$subject = get_string_manager()->get_string('messagecontactrequestsnotificationsubject', 'core_message', $userfromfullname,
$userto->lang);
$fullmessage = get_string_manager()->get_string('messagecontactrequestsnotification', 'core_message', $userfromfullname,
$userto->lang);

$message = new \core\message\message();
$message->courseid = SITEID;
Expand Down

0 comments on commit 5aacc83

Please sign in to comment.