Bugfix: Timeout problems when saving profile settings

This commit is contained in:
Michael 2017-05-19 06:01:13 +00:00
commit 6e8e326705
5 changed files with 12 additions and 10 deletions

View file

@ -131,8 +131,7 @@ function profile_photo_post(App $a) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
require_once('include/profile_update.php');
profile_change();
proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
} else {
notice( t('Unable to process image') . EOL);
}

View file

@ -504,8 +504,7 @@ function profiles_post(App $a) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
require_once 'include/profile_update.php';
profile_change();
proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
// Update the global contact for the user
update_gcontact_for_user(local_user());

View file

@ -637,8 +637,7 @@ function settings_post(App $a) {
}
}
require_once('include/profile_update.php');
profile_change();
proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
// Update the global contact for the user
update_gcontact_for_user(local_user());