Renaming - part 2 :-)

This commit is contained in:
nupplaPhil 2020-01-27 00:01:17 +01:00
parent 765a0d8892
commit 6350b210a6
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ use Friendica\Object\Email;
*/
class ItemCCEMail extends Email
{
public function __construct(App $a, L10n $l10n, BaseURL $baseUrl, array $item, string $toEmail, string $authorThumb)
public function __construct(App $a, L10n $l10n, BaseURL $baseUrl, array $item, string $toAddress, string $authorThumb)
{
$disclaimer = '<hr />' . $l10n->t('This message was sent to you by %s, a member of the Friendica social network.', $a->user['username'])
. '<br />';
@ -29,7 +29,7 @@ class ItemCCEMail extends Email
$html = Item::prepareBody($item);
$message = '<html><body>' . $link . $html . $disclaimer . '</body></html>';;
parent::__construct($a->user['username'], $a->user['email'], $a->user['email'], $toEmail,
parent::__construct($a->user['username'], $a->user['email'], $a->user['email'], $toAddress,
$subject, $message, HTML::toPlaintext($html . $disclaimer));
}
}

View file

@ -33,14 +33,14 @@ class Email implements IEmail
/** @var int|null */
private $toUid = null;
public function __construct(string $fromName, string $fromEmail, string $replyTo, string $toEmail,
public function __construct(string $fromName, string $fromAddress, string $replyTo, string $toAddress,
string $subject, string $msgHtml, string $msgText,
string $additionalMailHeader = '', int $toUid = null)
{
$this->fromName = $fromName;
$this->fromAddress = $fromEmail;
$this->fromAddress = $fromAddress;
$this->replyTo = $replyTo;
$this->toAddress = $toEmail;
$this->toAddress = $toAddress;
$this->subject = $subject;
$this->msgHtml = $msgHtml;
$this->msgText = $msgText;