Removed the [[noreply]] string from forum sender names.

This commit is contained in:
defacer 2004-06-29 07:01:34 +00:00
parent 4d35d88bcd
commit 0d8a590a0b

View File

@ -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);