MDL-48148 mod_forum: Use correct original subject when handling replies

This commit is contained in:
Andrew Nicols
2014-11-26 08:56:24 +00:00
committed by Dan Poltawski
parent a76630d700
commit 5169661ee2
@@ -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;