From 330895d56ff149c615a54b9aaf91d75aeb3278ef Mon Sep 17 00:00:00 2001 From: fmarier Date: Wed, 6 May 2009 22:41:39 +0000 Subject: [PATCH] MDL-19095 mod/forum: fix for new forum discussions being broken (This problem was introduced in e2d7687fc420495acebc6952a44794f5390a78b9) --- mod/forum/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5