X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=689ae823291410d09840a8f1b8c8c9d2cc4953c5;hb=8c245a5d2f4e6882211ac17561f86537a7089c73;hp=28441eae8fbd589010019a86e3a637b56cd6332b;hpb=c397a2f89bf3c2c609852f5bfc618c1d0cb0b709;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index 28441eae8f..689ae82329 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -84,7 +84,7 @@ function follow_post(&$a) { // Google doesn't use absolute url in profile photos if((x($vcard,'photo')) && substr($vcard['photo'],0,1) == '/') { - $h = parse_url($hcard); + $h = @parse_url($hcard); if($h) $vcard['photo'] = $h['scheme'] . '://' . $h['host'] . $vcard['photo']; } @@ -253,9 +253,7 @@ function follow_post(&$a) { // pull feed and consume it, which should subscribe to the hub. - $php_path = ((x($a->config,'php_path') && strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); - //proc_close(proc_open("\"$php_path\" \"include/poller.php\" \"$contact_id\" &", array(), $foo)); - proc_run($php_path,"include/poller.php","$contact_id"); + proc_run('php',"include/poller.php","$contact_id"); // create a follow slap