From 3403906010e4263fe355b40bdb960c9e1094962a Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 7 Aug 2012 10:53:33 +0800 Subject: [PATCH] MDL-29192 - clarify email_to_user call --- mod/forum/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 27bdc3404fd..e5ad29139c5 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -925,7 +925,8 @@ function forum_cron() { $attachment = $attachname=''; $usetrueaddress = true; - //directly email forum digests rather than sending them via messaging + // Directly email forum digests rather than sending them via messaging, use the + // site shortname as 'from name', the noreply address will be used by email_to_user. $mailresult = email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, $attachment, $attachname, $usetrueaddress, $CFG->forum_replytouser); if (!$mailresult) {