diff options
author | olivierm <olivier@migeot.org> | 2011-02-24 18:52:08 +0100 |
---|---|---|
committer | olivierm <olivier@migeot.org> | 2011-02-24 18:52:08 +0100 |
commit | d2c47924eb186a0839fe107b271ccbf27d15fe10 (patch) | |
tree | ad94b3b6ed5232fc388ddb3212d1f0dccb3eb893 /mod/profile_photo.php | |
parent | 42d1474ff1388f987961ba24b0218a8e6ff0f47c (diff) | |
parent | 8ed085c64e4fb097394d0cc93f8744606c15527b (diff) | |
download | volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.gz volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.bz2 volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.zip |
Merge commit 'mike/master'
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r-- | mod/profile_photo.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 4f0d567f4..0f84a85c9 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -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 |