mirror of
https://github.com/friendica/friendica
synced 2024-12-27 14:42:19 +00:00
0dfa57948f
Replace deprecated functions with new syntax.
17 lines
285 B
PHP
17 lines
285 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
use Friendica\Network\Probe;
|
|
|
|
function acctlink_init(App $a) {
|
|
|
|
if(x($_GET,'addr')) {
|
|
$addr = trim($_GET['addr']);
|
|
$res = Probe::uri($addr);
|
|
//logger('acctlink: ' . print_r($res,true));
|
|
if($res['url']) {
|
|
goaway($res['url']);
|
|
killme();
|
|
}
|
|
}
|
|
}
|