]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Edited view/sv/registrations-top.tpl via GitHub
[friendica.git] / mod / profile_photo.php
index 1bf4e176b83473e191d87b2bb0bb960b87b2d413..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
@@ -188,7 +184,7 @@ function profile_photo_content(&$a) {
                $tpl = load_view_file('view/profile_photo.tpl');
 
                $o .= replace_macros($tpl,array(
-
+                       '$user' => $a->user['nickname']
                ));
 
                return $o;