added spaces + curly braces
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
1248b26d3c
commit
d3391e12e3
|
@ -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
|
||||
|
|
|
@ -502,8 +502,9 @@ function profiles_post(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);
|
||||
}
|
||||
|
||||
require_once('include/profile_update.php');
|
||||
profile_change();
|
||||
|
|
|
@ -63,10 +63,12 @@ function redir_init(App &$a) {
|
|||
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
|
||||
}
|
||||
|
||||
if(local_user())
|
||||
if (local_user()) {
|
||||
$handle = $a->user['nickname'] . '@' . substr($a->get_baseurl(),strpos($a->get_baseurl(),'://')+3);
|
||||
if(remote_user())
|
||||
}
|
||||
if (remote_user()) {
|
||||
$handle = $_SESSION['handle'];
|
||||
}
|
||||
|
||||
if ($url) {
|
||||
$url = str_replace('{zid}','&zid=' . $handle,$url);
|
||||
|
|
|
@ -38,9 +38,10 @@ function user_allow($hash) {
|
|||
);
|
||||
if (dbm::is_result($r) && $r[0]['net-publish']) {
|
||||
$url = App::get_baseurl() . '/profile/' . $user[0]['nickname'];
|
||||
if($url && strlen(get_config('system','directory')))
|
||||
if ($url && strlen(get_config('system','directory'))) {
|
||||
proc_run(PRIORITY_LOW, "include/directory.php", $url);
|
||||
}
|
||||
}
|
||||
|
||||
push_lang($register[0]['language']);
|
||||
|
||||
|
|
|
@ -629,9 +629,10 @@ function settings_post(App &$a) {
|
|||
if(($old_visibility != $net_publish) || ($page_flags != $old_page_flags)) {
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
require_once('include/profile_update.php');
|
||||
profile_change();
|
||||
|
|
Loading…
Reference in a new issue