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:
Rajesh Taneja
2013-09-13 16:13:26 +08:00
parent 3bcf6b3cdd
commit 2b503e40f2
6 changed files with 22 additions and 34 deletions
+1 -1
View File
@@ -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!");
}