mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Minor, fix a variable issue with new context commenting.
This commit is contained in:
parent
94f89c08f1
commit
dc2fd46027
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue