mirror of
https://github.com/friendica/friendica
synced 2024-11-10 21:02:54 +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();
|
|
}
|
|
}
|
|
}
|