Differential D14474 Diff 35005 src/applications/differential/mail/DifferentialCreateMailReceiver.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/mail/DifferentialCreateMailReceiver.php
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | if ($body) { | ||||
'generated via "diff" commands can be parsed.'); | 'generated via "diff" commands can be parsed.'); | ||||
} | } | ||||
} | } | ||||
$subject_prefix = | $subject_prefix = | ||||
PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); | PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); | ||||
if (count($diffs)) { | if (count($diffs)) { | ||||
$subject = pht( | $subject = pht( | ||||
'You successfully created %d diff(s).', | 'You successfully created %s diff(s).', | ||||
count($diffs)); | phutil_count($diffs)); | ||||
} else { | } else { | ||||
$subject = pht( | $subject = pht( | ||||
'Diff creation failed; see body for %s error(s).', | 'Diff creation failed; see body for %s error(s).', | ||||
phutil_count($errors)); | phutil_count($errors)); | ||||
} | } | ||||
$body = new PhabricatorMetaMTAMailBody(); | $body = new PhabricatorMetaMTAMailBody(); | ||||
$body->addRawSection($subject); | $body->addRawSection($subject); | ||||
if (count($diffs)) { | if (count($diffs)) { | ||||
Show All 36 Lines |