mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 19:01:03 +01:00
Minor, fix some obvious derp from the attachment patch.
This commit is contained in:
parent
756faad2aa
commit
831133e880
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ abstract class DifferentialReviewRequestMail extends DifferentialMail {
|
|||
$attachments = array();
|
||||
|
||||
if (PhabricatorEnv::getEnvConfig('metamta.differential.attach-patches')) {
|
||||
|
||||
$revision_id = $this->getRevision()->getID();
|
||||
|
||||
$diffs = $revision->loadDiffs();
|
||||
$diff_number = count($diffs);
|
||||
|
||||
$attachments[] = new PhabricatorMetaMTAAttachment(
|
||||
$this->buildPatch(),
|
||||
"D{$revision_id}.{$diff_number}.patch",
|
||||
|
|
Loading…
Reference in a new issue