mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +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
|
@ -17,7 +17,7 @@ use Friendica\Module\Login;
|
|||
function notifications_post(App $a)
|
||||
{
|
||||
if (!local_user()) {
|
||||
$a->redirect();
|
||||
$a->internalRedirect();
|
||||
}
|
||||
|
||||
$request_id = (($a->argc > 1) ? $a->argv[1] : 0);
|
||||
|
@ -52,12 +52,12 @@ function notifications_post(App $a)
|
|||
'self' => false, 'blocked' => true, 'pending' => true];
|
||||
DBA::delete('contact', $condition);
|
||||
}
|
||||
$a->redirect('notifications/intros');
|
||||
$a->internalRedirect('notifications/intros');
|
||||
}
|
||||
|
||||
if ($_POST['submit'] == L10n::t('Ignore')) {
|
||||
DBA::update('intro', ['ignore' => true], ['id' => $intro_id]);
|
||||
$a->redirect('notifications/intros');
|
||||
$a->internalRedirect('notifications/intros');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue