mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
[various] Replace deprecated defaults() calls by ?? operator
This commit is contained in:
parent
ce7b5ff6ac
commit
acdd62da3e
12 changed files with 27 additions and 26 deletions
|
@ -109,8 +109,8 @@ function notifyall_content(&$a)
|
|||
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('notifyall_form.tpl', 'addon/notifyall/'), [
|
||||
'$title' => $title,
|
||||
'$text' => htmlspecialchars(defaults($_REQUEST, 'text', '')),
|
||||
'$subject' => ['subject', L10n::t('Message subject'), defaults($_REQUEST, 'subject', ''),''],
|
||||
'$text' => htmlspecialchars($_REQUEST['text'] ?? ''),
|
||||
'$subject' => ['subject', L10n::t('Message subject'), $_REQUEST['subject'] ?? '',''],
|
||||
'$test' => ['test',L10n::t('Test mode (only send to administrator)'), 0,''],
|
||||
'$submit' => L10n::t('Submit')
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue