mirror of
https://github.com/friendica/friendica
synced 2025-05-03 09:04:10 +02:00
Replace deprecated calls to defaults() by ?? and ?: in src/
This commit is contained in:
parent
c0b78a9720
commit
146646c4d4
41 changed files with 239 additions and 233 deletions
|
@ -57,7 +57,7 @@ class Emailer
|
|||
.rand(10000, 99999);
|
||||
|
||||
// generate a multipart/alternative message header
|
||||
$messageHeader = defaults($params, 'additionalMailHeader', '') .
|
||||
$messageHeader = ($params['additionalMailHeader'] ?? '') .
|
||||
"From: $fromName <{$params['fromEmail']}>\n" .
|
||||
"Reply-To: $fromName <{$params['replyTo']}>\n" .
|
||||
"MIME-Version: 1.0\n" .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue