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
|
@ -301,7 +301,7 @@ function cal_content(App $a)
|
|||
// Respect the export feature setting for all other /cal pages if it's not the own profile
|
||||
if ((local_user() !== intval($owner_uid)) && !Feature::isEnabled($owner_uid, "export_calendar")) {
|
||||
notice(L10n::t('Permission denied.') . EOL);
|
||||
$a->redirect('cal/' . $nick);
|
||||
$a->internalRedirect('cal/' . $nick);
|
||||
}
|
||||
|
||||
// Get the export data by uid
|
||||
|
@ -322,7 +322,7 @@ function cal_content(App $a)
|
|||
$return_path = "cal/" . $nick;
|
||||
}
|
||||
|
||||
$a->redirect($return_path);
|
||||
$a->internalRedirect($return_path);
|
||||
}
|
||||
|
||||
// If nothing went wrong we can echo the export content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue