From 72590a5139299830ea6fece5332d43d67b9e1b93 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 26 Nov 2014 15:58:05 +0800 Subject: [PATCH] MDL-48148 mod_forum: Use correct original subject when handling replies --- mod/forum/classes/message/inbound/reply_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/classes/message/inbound/reply_handler.php b/mod/forum/classes/message/inbound/reply_handler.php index 90a80456f3667..86d91d54625c6 100644 --- a/mod/forum/classes/message/inbound/reply_handler.php +++ b/mod/forum/classes/message/inbound/reply_handler.php @@ -147,7 +147,7 @@ public function process_message(\stdClass $record, \stdClass $messagedata) { $newsubject = $post->subject; if (!strpos($restring, $post->subject)) { // The previous post did not contain a re string, add it. - $newsubject = $restring . ' ' . $subject; + $newsubject = $restring . ' ' . $newsubject; } mtrace("--> Note: Post subject matched original post subject. Optimising from {$subject} to {$newsubject}"); $subject = $newsubject;