mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +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;
|
$range = $start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$inline_content = $inline->getContent();
|
||||||
|
|
||||||
if (!PhabricatorEnv::getEnvConfig(
|
if (!PhabricatorEnv::getEnvConfig(
|
||||||
'metamta.differential.unified-comment-context', false)) {
|
'metamta.differential.unified-comment-context', false)) {
|
||||||
$body[] = $this->formatText("{$file}:{$range} {$content}");
|
$body[] = $this->formatText("{$file}:{$range} {$inline_content}");
|
||||||
} else {
|
} else {
|
||||||
$body[] = "================";
|
$body[] = "================";
|
||||||
$body[] = "Comment at: " . $file . ":" . $range;
|
$body[] = "Comment at: " . $file . ":" . $range;
|
||||||
$body[] = $changeset->makeContextDiff($inline, 1);
|
$body[] = $changeset->makeContextDiff($inline, 1);
|
||||||
$body[] = "----------------";
|
$body[] = "----------------";
|
||||||
|
|
||||||
$content = $inline->getContent();
|
$body[] = $inline_content;
|
||||||
$body[] = $content;
|
|
||||||
$body[] = null;
|
$body[] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue