Skip to content

Commit

Permalink
Removed the [[noreply]] string from forum sender names.
Browse files Browse the repository at this point in the history
  • Loading branch information
defacer committed Jun 29, 2004
1 parent 4d35d88 commit 0d8a590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Expand Up @@ -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);

Expand Down

0 comments on commit 0d8a590

Please sign in to comment.