From 0d6077478f6eee3692f83ea37ab945c04833f0e6 Mon Sep 17 00:00:00 2001 From: Dennis Ahrens <dennis.ahrens@hs-hannover.de> Date: Mon, 19 Jul 2021 18:08:05 +0200 Subject: [PATCH] REMOVE Php utf8 encode function to fix wrong user name formatting backported from moodle swamp repo into this dedicated repository. --- lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index a30d977..191d795 100644 --- a/lib.php +++ b/lib.php @@ -378,13 +378,13 @@ class course_request_hsh { $this->delete(); $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->responser = $USER->firstname . ' ' . $USER->lastname; $a->email = $USER->email; $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); if (strpos($this->properties->reason, "Daten?bernahme von:") !== false) { $mailmessage .= get_string('coursecopyinform', 'local_hsh', $a); -- GitLab