Some Renames:
- EMail => EMail - toEmail => toAddress - fromEmail => fromAddress
This commit is contained in:
parent
f6878b5bcf
commit
765a0d8892
5 changed files with 23 additions and 25 deletions
|
@ -23,7 +23,7 @@ interface IEmail
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
function getFromEmail();
|
||||
function getFromAddress();
|
||||
|
||||
/**
|
||||
* Gets the UID of the sender of this email
|
||||
|
@ -44,7 +44,7 @@ interface IEmail
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
function getToEmail();
|
||||
function getToAddress();
|
||||
|
||||
/**
|
||||
* Gets the subject of this email
|
||||
|
|
|
@ -7,12 +7,12 @@ use Friendica\App\BaseURL;
|
|||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Object\EMail;
|
||||
use Friendica\Object\Email;
|
||||
|
||||
/**
|
||||
* Class for creating CC emails based on a received item
|
||||
*/
|
||||
class ItemCCEMail extends EMail
|
||||
class ItemCCEMail extends Email
|
||||
{
|
||||
public function __construct(App $a, L10n $l10n, BaseURL $baseUrl, array $item, string $toEmail, string $authorThumb)
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ class ItemCCEMail extends EMail
|
|||
$disclaimer .= $l10n->t('You may visit them online at %s', $baseUrl . '/profile/' . $a->user['nickname']) . EOL;
|
||||
$disclaimer .= $l10n->t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
|
||||
if (!$item['title'] == '') {
|
||||
$subject = EMail::encodeHeader($item['title'], 'UTF-8');
|
||||
$subject = Email::encodeHeader($item['title'], 'UTF-8');
|
||||
} else {
|
||||
$subject = Email::encodeHeader('[Friendica]' . ' ' . $l10n->t('%s posted an update.', $a->user['username']), 'UTF-8');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue