From a0330747f966b2ffb79fcf3b8c4db7a765a95a8e Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 22 Jul 2004 14:08:33 +0000 Subject: [PATCH] Add body color to email .... ? Reversed PJ's changes .. should to be working OK without them --- mod/forum/lib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 878d0eef41..0c4243e97a 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -187,7 +187,7 @@ function forum_cron () { $strforums = get_string('forums', 'forum'); } - global $CFG, $USER; + global $CFG, $USER, $THEME; if (!empty($USER)) { // Remember real USER account if necessary $realuser = $USER; @@ -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 = empty($userto->lang) ? $CFG->lang : $userto->lang; - $USER->timezone = get_user_timezone($userto->timezone); + $USER->lang = $userto->lang; + $USER->timezone = $userto->timezone; $postsubject = get_string('digestmailsubject', 'forum', $site->shortname); @@ -375,7 +375,8 @@ function forum_cron () { $posttext = get_string('digestmailheader', 'forum', $headerdata)."\n\n"; $headerdata->userprefs = ''.get_string('digestmailprefs', 'forum').''; - $posthtml = '

'.get_string('digestmailheader', 'forum', $headerdata).'



'; + $posthtml = "cellcontent2\">"; + $posthtml .= '

'.get_string('digestmailheader', 'forum', $headerdata).'



'; foreach($thesediscussions as $discussionid) { $discussion = $discussions[$discussionid]; @@ -456,6 +457,7 @@ function forum_cron () { } $posthtml .= '

'; } + $posthtml .= ''; if (! email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, '', '', $CFG->forum_replytouser)) { echo "ERROR!\n"; -- 2.39.5