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
|
@ -37,9 +37,9 @@ function xmpp_addon_settings_post()
|
|||
return;
|
||||
}
|
||||
|
||||
PConfig::set(local_user(), 'xmpp', 'enabled', defaults($_POST, 'xmpp_enabled', false));
|
||||
PConfig::set(local_user(), 'xmpp', 'individual', defaults($_POST, 'xmpp_individual', false));
|
||||
PConfig::set(local_user(), 'xmpp', 'bosh_proxy', defaults($_POST, 'xmpp_bosh_proxy', ''));
|
||||
PConfig::set(local_user(), 'xmpp', 'enabled', $_POST['xmpp_enabled'] ?? false);
|
||||
PConfig::set(local_user(), 'xmpp', 'individual', $_POST['xmpp_individual'] ?? false);
|
||||
PConfig::set(local_user(), 'xmpp', 'bosh_proxy', $_POST['xmpp_bosh_proxy'] ?? '');
|
||||
|
||||
info(L10n::t('XMPP settings updated.') . EOL);
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ function xmpp_converse(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
if (defaults($_GET, "mode", '') == "minimal") {
|
||||
if (($_GET['mode'] ?? '') == 'minimal') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue