1
1
Fork 0

update global directory on change of profile photo

This commit is contained in:
Mike Macgirvin 2010-09-08 20:46:10 -07:00
parent ffb1997902
commit 8a87ad9b88

View file

@ -79,6 +79,13 @@ function profile_photo_post(&$a) {
intval($_SESSION['uid'])
);
// 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));
}
goaway($a->get_baseurl() . '/profiles');
return; // NOTREACHED