Permalink
Browse files

Make sure mailouts are in the chosen language of each user

  • Loading branch information...
1 parent bcf7ee7 commit 5319c6adf6e0bfdf3b37ba1f90ca565315b9f63f martin committed Sep 21, 2002
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/forum/lib.php
View
@@ -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);

0 comments on commit 5319c6a

Please sign in to comment.