From: fmarier Date: Wed, 6 May 2009 22:41:39 +0000 (+0000) Subject: MDL-19095 mod/forum: fix for new forum discussions being broken X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=330895d56ff149c615a54b9aaf91d75aeb3278ef;p=moodle.git MDL-19095 mod/forum: fix for new forum discussions being broken (This problem was introduced in e2d7687fc420495acebc6952a44794f5390a78b9) --- diff --git a/mod/forum/post.php b/mod/forum/post.php index 8064b0034a..03c19ed5d7 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -541,8 +541,9 @@ } $fromform->itemid = $fromform->message['itemid']; - $fromform->message = $fromform->message['text']; $fromform->messageformat = $fromform->message['format']; + $fromform->message = $fromform->message['text']; + // WARNING: the $fromform->message array has been overwritten, do not use it anymore! $fromform->messagetrust = trusttext_trusted($modcontext); if ($fromform->edit) { // Updating a post