projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb1997
)
update global directory on change of profile photo
author
Mike Macgirvin
<mike@macgirvin.com>
Thu, 9 Sep 2010 03:46:10 +0000
(20:46 -0700)
committer
Mike Macgirvin
<mike@macgirvin.com>
Thu, 9 Sep 2010 03:46:10 +0000
(20:46 -0700)
mod/profile_photo.php
patch
|
blob
|
history
diff --git
a/mod/profile_photo.php
b/mod/profile_photo.php
index ebd9f1b48104caa8c3b44783ffcf0812011892b5..377bc3313a1634a5e9d7dec5f1c7e31b57907d27 100644
(file)
--- 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