Split goaway to System::externalRedirectTo() and App->internalRedirect()

This commit is contained in:
Philipp Holzer
2018-10-19 20:11:27 +02:00
parent 2ef81108b3
commit d00ddc01af
61 changed files with 286 additions and 266 deletions

View File

@@ -38,7 +38,7 @@ function network_init(App $a)
$search = (x($_GET, 'search') ? escape_tags($_GET['search']) : '');
if (($search != '') && !empty($_GET['submit'])) {
$a->redirect('search?search=' . urlencode($search));
$a->internalRedirect('search?search=' . urlencode($search));
}
if (x($_GET, 'save')) {
@@ -140,7 +140,7 @@ function network_init(App $a)
$redir_url = ($net_queries ? $net_baseurl . '?' . $net_queries : $net_baseurl);
$a->redirect($redir_url);
$a->internalRedirect($redir_url);
}
}
@@ -618,7 +618,7 @@ function networkThreadedView(App $a, $update, $parent)
killme();
}
notice(L10n::t('No such group') . EOL);
$a->redirect('network/0');
$a->internalRedirect('network/0');
// NOTREACHED
}
@@ -672,7 +672,7 @@ function networkThreadedView(App $a, $update, $parent)
}
} else {
notice(L10n::t('Invalid contact.') . EOL);
$a->redirect('network');
$a->internalRedirect('network');
// NOTREACHED
}
}