Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/mail/FileCreateMailReceiver.php
Show All 27 Lines | protected function processReceivedMail( | ||||
} | } | ||||
$attachment_count = count($attachment_phids); | $attachment_count = count($attachment_phids); | ||||
if ($attachment_count > 1) { | if ($attachment_count > 1) { | ||||
$subject = pht('You successfully uploaded %d files.', $attachment_count); | $subject = pht('You successfully uploaded %d files.', $attachment_count); | ||||
} else { | } else { | ||||
$subject = pht('You successfully uploaded a file.'); | $subject = pht('You successfully uploaded a file.'); | ||||
} | } | ||||
$subject_prefix = | $subject_prefix = pht('[File]'); | ||||
PhabricatorEnv::getEnvConfig('metamta.files.subject-prefix'); | |||||
$file_uris = array(); | $file_uris = array(); | ||||
foreach ($attachment_phids as $phid) { | foreach ($attachment_phids as $phid) { | ||||
$file_uris[] = | $file_uris[] = | ||||
PhabricatorEnv::getProductionURI('/file/info/'.$phid.'/'); | PhabricatorEnv::getProductionURI('/file/info/'.$phid.'/'); | ||||
} | } | ||||
$body = new PhabricatorMetaMTAMailBody(); | $body = new PhabricatorMetaMTAMailBody(); | ||||
Show All 14 Lines |