diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 8ea31ab0a2e04..2ec7b36b9ae19 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -443,8 +443,11 @@ function forum_cron () { $posttext = get_string('digestmailheader', 'forum', $headerdata)."\n\n"; $headerdata->userprefs = ''.get_string('digestmailprefs', 'forum').''; - $posthtml = "stylesheet."\" />\n"; - $posthtml .= ""; + $posthtml = ""; + foreach ($CFG->stylesheets as $stylesheet) { + $posthtml .= ''."\n"; + } + $posthtml .= "\n\n"; $posthtml .= '

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



'; foreach($thesediscussions as $discussionid) { @@ -653,8 +656,12 @@ function forum_make_mail_html($course, $forum, $discussion, $post, $userfrom, $u $canunsubscribe = ! forum_is_forcesubscribed($forum->id); $posthtml = ''; - $posthtml .= "stylesheet."\" />\n"; - $posthtml .= "\n\n"; + $posthtml .= ''; + foreach ($CFG->stylesheets as $stylesheet) { + $posthtml .= ''."\n"; + } + $posthtml .= ''; + $posthtml .= "\n\n\n"; $posthtml .= "

". "wwwroot/course/view.php?id=$course->id\">$course->shortname » ".