]> git.mxchange.org Git - friendica.git/blobdiff - mod/follow.php
Edited view/sv/registrations-top.tpl via GitHub
[friendica.git] / mod / follow.php
index 28441eae8fbd589010019a86e3a637b56cd6332b..689ae823291410d09840a8f1b8c8c9d2cc4953c5 100644 (file)
@@ -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