X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile_photo.php;h=70ea45afa4e923003e97e853687f9dec52571d00;hb=f3529e7dbcad8af388764938230b1e864359fa83;hp=371effd0cb0e961cd01675c899cdc53a64ade8b0;hpb=2e908ebbbf916fd838906bdc1398955605cb097a;p=friendica.git diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 371effd0cb..70ea45afa4 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -124,8 +124,9 @@ function profile_photo_post(&$a) { info( t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL); // Update global directory in background $url = App::get_baseurl() . '/profile/' . $a->user['nickname']; - if($url && strlen(get_config('system','directory'))) + if ($url && strlen(get_config('system','directory'))) { proc_run(PRIORITY_LOW, "include/directory.php", $url); + } require_once('include/profile_update.php'); profile_change(); @@ -223,8 +224,9 @@ function profile_photo_content(&$a) { // Update global directory in background $url = $_SESSION['my_url']; - if($url && strlen(get_config('system','directory'))) + if ($url && strlen(get_config('system','directory'))) { proc_run(PRIORITY_LOW, "include/directory.php", $url); + } goaway(App::get_baseurl() . '/profiles'); return; // NOTREACHED