From: Mike Macgirvin Date: Thu, 9 Sep 2010 03:46:10 +0000 (-0700) Subject: update global directory on change of profile photo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a87ad9b88f045f26c07e45050f2e6ec46e03b5d;p=friendica.git update global directory on change of profile photo --- diff --git a/mod/profile_photo.php b/mod/profile_photo.php index ebd9f1b481..377bc3313a 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -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