fix all redirects to home (because of new urls redirect to ? wont work anymore)

This commit is contained in:
msquare 2017-11-19 10:45:08 +01:00
parent 80606cdd8b
commit 50f24271eb
6 changed files with 11 additions and 11 deletions

View File

@ -171,7 +171,7 @@ function angeltype_controller()
global $privileges, $user;
if (!in_array('angeltypes', $privileges)) {
redirect('?');
redirect(page_link_to('/'));
}
$angeltype = load_angeltype();
@ -204,7 +204,7 @@ function angeltypes_list_controller()
global $privileges, $user;
if (!in_array('angeltypes', $privileges)) {
redirect('?');
redirect(page_link_to('/'));
}
$angeltypes = AngelTypes_with_user($user);

View File

@ -16,7 +16,7 @@ function event_config_edit_controller()
global $privileges;
if (!in_array('admin_event_config', $privileges)) {
redirect('?');
redirect(page_link_to('/'));
}
$request = request();

View File

@ -249,7 +249,7 @@ function shift_controller()
$request = request();
if (!in_array('user_shifts', $privileges)) {
redirect(page_link_to('?'));
redirect(page_link_to('/'));
}
if (!$request->has('shift_id')) {
@ -311,7 +311,7 @@ function shifts_controller()
case 'next':
return shift_next_controller();
default:
redirect(page_link_to('?'));
redirect(page_link_to('/'));
}
return false;
@ -325,7 +325,7 @@ function shift_next_controller()
global $user, $privileges;
if (!in_array('user_shifts', $privileges)) {
redirect(page_link_to('?'));
redirect(page_link_to('/'));
}
$upcoming_shifts = ShiftEntries_upcoming_for_user($user);

View File

@ -192,7 +192,7 @@ function user_controller()
$user_source = User($request->input('user_id'));
if ($user_source == null) {
error(_('User not found.'));
redirect('?');
redirect(page_link_to('/'));
}
}

View File

@ -271,7 +271,7 @@ function guest_register()
return User_registration_success_view($event_config['event_welcome_msg']);
}
redirect('?');
redirect(page_link_to('/'));
}
}

View File

@ -96,7 +96,7 @@ function load_rooms()
);
if (empty($rooms)) {
error(_('The administration has not configured any rooms yet.'));
redirect('?');
redirect(page_link_to('/'));
}
return $rooms;
}
@ -115,7 +115,7 @@ function load_days()
if (empty($days)) {
error(_('The administration has not configured any shifts yet.'));
redirect('?');
redirect(page_link_to('/'));
}
return $days;
}
@ -129,7 +129,7 @@ function load_types()
if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes` WHERE `restricted` = 0'))) {
error(_('The administration has not configured any angeltypes yet - or you are not subscribed to any angeltype.'));
redirect('?');
redirect(page_link_to('/'));
}
$types = DB::select('
SELECT