1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Fix bad "$this" references in "Must Encrypt" mail after MailEngine changes

Summary: See PHI1038. I missed these when pulling the code out.

Test Plan: Sent "Must encrypt" mail, verified it made it through the queue in one piece.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20029
This commit is contained in:
epriestley 2019-01-24 14:59:34 -08:00
parent e72684a4ba
commit 5cfcef7f53

View file

@ -90,9 +90,9 @@ final class PhabricatorMailEmailEngine
if ($must_encrypt) {
$parts = array();
$encrypt_uri = $this->getMustEncryptURI();
$encrypt_uri = $mail->getMustEncryptURI();
if (!strlen($encrypt_uri)) {
$encrypt_phid = $this->getRelatedPHID();
$encrypt_phid = $mail->getRelatedPHID();
if ($encrypt_phid) {
$encrypt_uri = urisprintf(
'/object/%s/',
@ -111,7 +111,7 @@ final class PhabricatorMailEmailEngine
'secure channel. To view the message content, follow this '.
'link:');
$parts[] = PhabricatorEnv::getProductionURI($this->getURI());
$parts[] = PhabricatorEnv::getProductionURI($mail->getURI());
$body = implode("\n\n", $parts);
} else {