MDL-31560 Messages: Deprecated generate_email_supportuser
generate_email_supportuser was not creating user which can be used by messaging system. core_user::get_support_user() should be used to get support_user record.
This commit is contained in:
+1
-1
@@ -250,7 +250,7 @@ if ($usernew = $userform->get_data()) {
|
||||
$emailupdatetitle = get_string('emailupdatetitle', 'auth', $a);
|
||||
|
||||
//email confirmation directly rather than using messaging so they will definitely get an email
|
||||
$supportuser = generate_email_supportuser();
|
||||
$supportuser = core_user::get_support_user();
|
||||
if (!$mail_results = email_to_user($temp_user, $supportuser, $emailupdatetitle, $emailupdatemessage)) {
|
||||
die("could not send email!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user