]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Merge branch 'omigeot-master'
[friendica.git] / mod / profile_photo.php
index 4f0d567f407a265bf0cf8441e8ff532a33f52260..0f84a85c9235b529214c2f2d87fe933d9bb6ea15 100644 (file)
@@ -87,11 +87,9 @@ function profile_photo_post(&$a) {
                                );
 
                                // Update global directory in background
-                               $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
                                $url = $_SESSION['my_url'];
                                if($url && strlen(get_config('system','directory_submit_url')))
-                                       //proc_close(proc_open("\"$php_path\" \"include/directory.php\" \"$url\" &",array(),$foo));
-                                       proc_run($php_path,"include/directory.php","$url");
+                                       proc_run('php',"include/directory.php","$url");
                        }
                        else
                                notice( t('Unable to process image') . EOL);
@@ -169,11 +167,9 @@ function profile_photo_content(&$a) {
                        );
                        
                        // Update global directory in background
-                       $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
                        $url = $_SESSION['my_url'];
                        if($url && strlen(get_config('system','directory_submit_url')))
-                               //proc_close(proc_open("\"$php_path\" \"include/directory.php\" \"$url\" &",array(),$foo));
-                               proc_run($php_path,"include/directory.php","$url");
+                               proc_run('php',"include/directory.php","$url");
                        
                        goaway($a->get_baseurl() . '/profiles');
                        return; // NOTREACHED