From 0d8a590a0b33ad2c2a3bd932a4916a21cfa0d270 Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 29 Jun 2004 07:01:34 +0000 Subject: [PATCH] Removed the [[noreply]] string from forum sender names. --- lib/moodlelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 52e1b6c967..cccac66c8b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1298,13 +1298,13 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a if (is_string($from)) { // So we can pass whatever we want if there is need $mail->From = $CFG->noreplyaddress; - $mail->FromName = $from.' '.get_string('noreply', 'forum'); + $mail->FromName = $from; } else if ($usetrueaddress and $from->maildisplay) { $mail->From = "$from->email"; $mail->FromName = fullname($from); } else { $mail->From = "$CFG->noreplyaddress"; - $mail->FromName = fullname($from).' '.get_string('noreply', 'forum'); + $mail->FromName = fullname($from); } $mail->Subject = stripslashes($subject); -- 2.39.5