replaced $return_url to $return_path to make it more clear that it is a relative path to the Friendica baseurl

This commit is contained in:
Philipp Holzer 2018-10-19 23:55:11 +02:00
parent a9510ffcdf
commit 3edad1591e
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
12 changed files with 44 additions and 44 deletions

View file

@ -82,7 +82,7 @@ class Authentication extends BaseObject
if ($interactive) {
if ($a->user['login_date'] <= NULL_DATE) {
$_SESSION['return_url'] = 'profile_photo/new';
$_SESSION['return_path'] = 'profile_photo/new';
$a->module = 'profile_photo';
info(L10n::t("Welcome ") . $a->user['username'] . EOL);
info(L10n::t('Please upload a profile photo.') . EOL);
@ -193,8 +193,8 @@ class Authentication extends BaseObject
if ($login_initial) {
Addon::callHooks('logged_in', $a->user);
if (($a->module !== 'home') && isset($_SESSION['return_url'])) {
$a->internalRedirect($_SESSION['return_url']);
if (($a->module !== 'home') && isset($_SESSION['return_path'])) {
$a->internalRedirect($_SESSION['return_path']);
}
}
}