aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-08 20:46:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-08 20:46:10 -0700
commit8a87ad9b88f045f26c07e45050f2e6ec46e03b5d (patch)
tree65cca422801fdc6bb04408aed564dc31a622ee52
parentffb1997902facb36b78a7cfa522f41f2b3d71cda (diff)
downloadvolse-hubzilla-8a87ad9b88f045f26c07e45050f2e6ec46e03b5d.tar.gz
volse-hubzilla-8a87ad9b88f045f26c07e45050f2e6ec46e03b5d.tar.bz2
volse-hubzilla-8a87ad9b88f045f26c07e45050f2e6ec46e03b5d.zip
update global directory on change of profile photo
-rw-r--r--mod/profile_photo.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index ebd9f1b48..377bc3313 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