From dc2fd460275dfca7c78e3bba0a40f022124d241c Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 14 Aug 2012 16:29:52 -0700 Subject: [PATCH] Minor, fix a variable issue with new context commenting. --- .../differential/mail/DifferentialCommentMail.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/applications/differential/mail/DifferentialCommentMail.php b/src/applications/differential/mail/DifferentialCommentMail.php index e9c962de3b..ead0bbf583 100644 --- a/src/applications/differential/mail/DifferentialCommentMail.php +++ b/src/applications/differential/mail/DifferentialCommentMail.php @@ -173,17 +173,18 @@ final class DifferentialCommentMail extends DifferentialMail { $range = $start; } + $inline_content = $inline->getContent(); + if (!PhabricatorEnv::getEnvConfig( 'metamta.differential.unified-comment-context', false)) { - $body[] = $this->formatText("{$file}:{$range} {$content}"); + $body[] = $this->formatText("{$file}:{$range} {$inline_content}"); } else { $body[] = "================"; $body[] = "Comment at: " . $file . ":" . $range; $body[] = $changeset->makeContextDiff($inline, 1); $body[] = "----------------"; - $content = $inline->getContent(); - $body[] = $content; + $body[] = $inline_content; $body[] = null; } }