mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
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:
parent
a9510ffcdf
commit
3edad1591e
12 changed files with 44 additions and 44 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue