From 831133e8802cbe8869d9da6c54f7bf2c048d1ad5 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 5 Mar 2012 16:44:11 -0800 Subject: [PATCH] Minor, fix some obvious derp from the attachment patch. --- .../mail/reviewrequest/DifferentialReviewRequestMail.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/differential/mail/reviewrequest/DifferentialReviewRequestMail.php b/src/applications/differential/mail/reviewrequest/DifferentialReviewRequestMail.php index b2a7f5ae04..4679acd59f 100644 --- a/src/applications/differential/mail/reviewrequest/DifferentialReviewRequestMail.php +++ b/src/applications/differential/mail/reviewrequest/DifferentialReviewRequestMail.php @@ -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",