mirror of
https://github.com/friendica/friendica
synced 2025-04-23 06:30:11 +00:00
Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
parent
8998926e5b
commit
f59ea2af55
40 changed files with 115 additions and 94 deletions
|
@ -13,10 +13,10 @@ class Acctlink extends BaseModule
|
|||
{
|
||||
public static function content()
|
||||
{
|
||||
$addr = defaults($_GET, 'addr', false);
|
||||
$addr = trim($_GET['addr'] ?? '');
|
||||
|
||||
if ($addr) {
|
||||
$url = defaults(Probe::uri(trim($addr)), 'url', false);
|
||||
$url = Probe::uri($addr)['url'] ?? '';
|
||||
|
||||
if ($url) {
|
||||
System::externalRedirect($url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue