Skip to content
Snippets Groups Projects
Commit 0d607747 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

REMOVE Php utf8 encode function to fix wrong user name formatting

backported from moodle swamp repo into this dedicated repository.
parent 1cf75b71
No related branches found
No related tags found
No related merge requests found
...@@ -378,13 +378,13 @@ class course_request_hsh { ...@@ -378,13 +378,13 @@ class course_request_hsh {
$this->delete(); $this->delete();
$a = new stdClass(); $a = new stdClass();
$a->coursename = utf8_encode(format_string($course->fullname, true, array('context' => context_course::instance($course->id)))); $a->coursename = format_string($course->fullname, true, array('context' => context_course::instance($course->id)));
$a->url = $CFG->wwwroot . '/course/view.php?id=' . $course->id; $a->url = $CFG->wwwroot . '/course/view.php?id=' . $course->id;
$a->responser = $USER->firstname . ' ' . $USER->lastname; $a->responser = $USER->firstname . ' ' . $USER->lastname;
$a->email = $USER->email; $a->email = $USER->email;
$a->telefon = $USER->phone1; $a->telefon = $USER->phone1;
$a->fullname = utf8_encode($user->firstname . ' ' . $user->lastname); $a->fullname = $user->firstname . ' ' . $user->lastname;
$mailmessage = get_string('courseapprovedemail1', 'local_hsh', $a); $mailmessage = get_string('courseapprovedemail1', 'local_hsh', $a);
if (strpos($this->properties->reason, "Daten?bernahme von:") !== false) { if (strpos($this->properties->reason, "Daten?bernahme von:") !== false) {
$mailmessage .= get_string('coursecopyinform', 'local_hsh', $a); $mailmessage .= get_string('coursecopyinform', 'local_hsh', $a);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment