From: nicolasconnault Date: Thu, 1 Mar 2007 06:01:43 +0000 (+0000) Subject: MDL-8629 - Outputting correct messages during redirection after forum posting with... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0af0271031bf2d671c465c932f3563b6299b62ab;p=moodle.git MDL-8629 - Outputting correct messages during redirection after forum posting with mail-now selected --- 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;