]> git.mjollnir.org Git - moodle.git/commitdiff
Removed the [[noreply]] string from forum sender names.
authordefacer <defacer>
Tue, 29 Jun 2004 07:01:34 +0000 (07:01 +0000)
committerdefacer <defacer>
Tue, 29 Jun 2004 07:01:34 +0000 (07:01 +0000)
lib/moodlelib.php

index 52e1b6c96789f5f329ee77139fcd33ae2426cd18..cccac66c8b0cde10c13968e1cff33c555f9a3075 100644 (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);