From: defacer Date: Tue, 29 Jun 2004 07:01:34 +0000 (+0000) Subject: Removed the [[noreply]] string from forum sender names. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0d8a590a0b33ad2c2a3bd932a4916a21cfa0d270;p=moodle.git Removed the [[noreply]] string from forum sender names. --- 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);