1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Minor, fix a variable issue with new context commenting.

This commit is contained in:
epriestley 2012-08-14 16:29:52 -07:00
parent 94f89c08f1
commit dc2fd46027

View file

@ -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;
}
}