mirror of
https://github.com/friendica/friendica
synced 2025-04-20 05:50:11 +00:00
Split goaway to System::externalRedirectTo() and App->internalRedirect()
This commit is contained in:
parent
2ef81108b3
commit
d00ddc01af
61 changed files with 286 additions and 266 deletions
|
@ -42,7 +42,7 @@ class Magic extends BaseModule
|
|||
|
||||
if (!$cid) {
|
||||
logger('No contact record found: ' . print_r($_REQUEST, true), LOGGER_DEBUG);
|
||||
$a->redirect($dest);
|
||||
$a->internalRedirect($dest);
|
||||
}
|
||||
|
||||
$contact = DBA::selectFirst('contact', ['id', 'nurl', 'url'], ['id' => $cid]);
|
||||
|
@ -56,7 +56,7 @@ class Magic extends BaseModule
|
|||
}
|
||||
|
||||
logger('Contact is already authenticated', LOGGER_DEBUG);
|
||||
$a->redirect($dest);
|
||||
$a->internalRedirect($dest);
|
||||
}
|
||||
|
||||
if (local_user()) {
|
||||
|
@ -100,10 +100,10 @@ class Magic extends BaseModule
|
|||
$x = strpbrk($dest, '?&');
|
||||
$args = (($x) ? '&owt=' . $token : '?f=&owt=' . $token);
|
||||
|
||||
$a->redirect($dest . $args);
|
||||
$a->internalRedirect($dest . $args);
|
||||
}
|
||||
}
|
||||
$a->redirect($dest);
|
||||
$a->internalRedirect($dest);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,6 +112,6 @@ class Magic extends BaseModule
|
|||
return $ret;
|
||||
}
|
||||
|
||||
$a->redirect($dest);
|
||||
$a->internalRedirect($dest);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue