From 5319c6adf6e0bfdf3b37ba1f90ca565315b9f63f Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 21 Sep 2002 07:42:54 +0000 Subject: [PATCH] Make sure mailouts are in the chosen language of each user --- mod/forum/lib.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5