From 2913fac6366050214a373e6c50a7412ac90b34bd Mon Sep 17 00:00:00 2001 From: defacer Date: Wed, 21 Jul 2004 12:01:38 +0000 Subject: [PATCH] An improvement(?) in forum digest language handling. --- mod/forum/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index c3cb841b17..878d0eef41 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -364,8 +364,8 @@ function forum_cron () { /// Override the language and timezone of the "current" user, so that /// mail is customised for the receiver. - $USER->lang = $userto->lang; - $USER->timezone = $userto->timezone; + $USER->lang = empty($userto->lang) ? $CFG->lang : $userto->lang; + $USER->timezone = get_user_timezone($userto->timezone); $postsubject = get_string('digestmailsubject', 'forum', $site->shortname); -- 2.39.5