mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02: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
|
@ -38,7 +38,7 @@ function profiles_init(App $a) {
|
|||
);
|
||||
if (! DBA::isResult($r)) {
|
||||
notice(L10n::t('Profile not found.') . EOL);
|
||||
$a->redirect('profiles');
|
||||
$a->internalRedirect('profiles');
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ function profiles_init(App $a) {
|
|||
info(L10n::t('Profile deleted.').EOL);
|
||||
}
|
||||
|
||||
$a->redirect('profiles');
|
||||
$a->internalRedirect('profiles');
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
|
@ -93,10 +93,10 @@ function profiles_init(App $a) {
|
|||
|
||||
info(L10n::t('New profile created.') . EOL);
|
||||
if (DBA::isResult($r3) && count($r3) == 1) {
|
||||
$a->redirect('profiles/' . $r3[0]['id']);
|
||||
$a->internalRedirect('profiles/' . $r3[0]['id']);
|
||||
}
|
||||
|
||||
$a->redirect('profiles');
|
||||
$a->internalRedirect('profiles');
|
||||
}
|
||||
|
||||
if (($a->argc > 2) && ($a->argv[1] === 'clone')) {
|
||||
|
@ -132,10 +132,10 @@ function profiles_init(App $a) {
|
|||
);
|
||||
info(L10n::t('New profile created.') . EOL);
|
||||
if ((DBA::isResult($r3)) && (count($r3) == 1)) {
|
||||
$a->redirect('profiles/'.$r3[0]['id']);
|
||||
$a->internalRedirect('profiles/'.$r3[0]['id']);
|
||||
}
|
||||
|
||||
$a->redirect('profiles');
|
||||
$a->internalRedirect('profiles');
|
||||
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
@ -654,7 +654,7 @@ function profiles_content(App $a) {
|
|||
);
|
||||
if (DBA::isResult($r)) {
|
||||
//Go to the default profile.
|
||||
$a->redirect('profiles/' . $r[0]['id']);
|
||||
$a->internalRedirect('profiles/' . $r[0]['id']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue