Merge branch 'MDL-51852-29' of git://github.com/andrewnicols/moodle into MOODLE_29_STABLE
This commit is contained in:
@@ -756,6 +756,11 @@ function forum_cron() {
|
||||
$replyaddress = $messageinboundgenerator->generate($userto->id);
|
||||
}
|
||||
|
||||
if (!empty($CFG->forum_enabletimedposts) && ($discussion->timestart > $post->modified)) {
|
||||
// Override the post->modified time with the discussion start for e-mails.
|
||||
$post->modified = $discussion->timestart;
|
||||
}
|
||||
|
||||
$a = new stdClass();
|
||||
$a->courseshortname = $shortname;
|
||||
$a->forumname = $cleanforumname;
|
||||
@@ -1089,6 +1094,11 @@ function forum_cron() {
|
||||
'Auto-Submitted: auto-generated',
|
||||
);
|
||||
|
||||
if (!empty($CFG->forum_enabletimedposts) && ($discussion->timestart > $post->modified)) {
|
||||
// Override the post->modified time with the discussion start for e-mails.
|
||||
$post->modified = $discussion->timestart;
|
||||
}
|
||||
|
||||
$maildigest = forum_get_user_maildigest_bulk($digests, $userto, $forum->id);
|
||||
if ($maildigest == 2) {
|
||||
// Subjects and link only
|
||||
|
||||
Reference in New Issue
Block a user