From: Andrew Nicols Date: Wed, 26 Nov 2014 07:58:05 +0000 (+0800) Subject: MDL-48148 mod_forum: Use correct original subject when handling replies X-Git-Tag: v2.9.0-beta~918 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=72590a5139299830ea6fece5332d43d67b9e1b93;hp=ac8c1538629008b782e8e56a6a68290c99f264d6 MDL-48148 mod_forum: Use correct original subject when handling replies --- diff --git a/mod/forum/classes/message/inbound/reply_handler.php b/mod/forum/classes/message/inbound/reply_handler.php index 90a80456f36..86d91d54625 100644 --- a/mod/forum/classes/message/inbound/reply_handler.php +++ b/mod/forum/classes/message/inbound/reply_handler.php @@ -147,7 +147,7 @@ class reply_handler extends \core\message\inbound\handler { $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;