From 0af0271031bf2d671c465c932f3563b6299b62ab Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 1 Mar 2007 06:01:43 +0000 Subject: [PATCH] MDL-8629 - Outputting correct messages during redirection after forum posting with mail-now selected --- mod/forum/post.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index b26815d11b..5ef4958b57 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -522,15 +522,16 @@ if (!empty($message)) { // if we're printing stuff about the file upload $timemessage = 4; } - $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); - + if ($subscribemessage = forum_post_subscription($fromform)) { $timemessage = 4; } - if (!empty($fromform->mailnow)) { + if ($fromform->mailnow) { $message .= get_string("postmailnow", "forum"); $timemessage = 4; + } else { + $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); } if ($forum->type == 'single') { @@ -574,12 +575,13 @@ if (!empty($message)) { // if we're printing stuff about the file upload $timemessage = 4; } - $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); - + if ($fromform->mailnow) { $message .= get_string("postmailnow", "forum"); $timemessage = 4; - } + } else { + $message .= '
'.get_string("postadded", "forum", format_time($CFG->maxeditingtime)); + } if ($subscribemessage = forum_post_subscription($discussion)) { $timemessage = 4; -- 2.39.5