From: martin Date: Sat, 21 Sep 2002 07:42:54 +0000 (+0000) Subject: Make sure mailouts are in the chosen language of each user X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5319c6adf6e0bfdf3b37ba1f90ca565315b9f63f;p=moodle.git Make sure mailouts are in the chosen language of each user --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index b621d4fe2b..0925dc09f0 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -909,6 +909,8 @@ function forum_cron () { $mailcount=0; foreach ($users as $userto) { + $USER->lang = $userto->lang; // Affects the language of get_string + $by->name = "$userfrom->firstname $userfrom->lastname"; $by->date = userdate($post->created, "", $userto->timezone); $strbynameondate = get_string("bynameondate", "forum", $by);