added spaces + curly braces
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
c1845c97cc
commit
c86f09a894
7 changed files with 23 additions and 16 deletions
|
|
@ -124,8 +124,9 @@ function profile_photo_post(App &$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(App &$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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue