fix all redirects to home (because of new urls redirect to ? wont work anymore)
This commit is contained in:
parent
80606cdd8b
commit
50f24271eb
|
@ -171,7 +171,7 @@ function angeltype_controller()
|
||||||
global $privileges, $user;
|
global $privileges, $user;
|
||||||
|
|
||||||
if (!in_array('angeltypes', $privileges)) {
|
if (!in_array('angeltypes', $privileges)) {
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$angeltype = load_angeltype();
|
$angeltype = load_angeltype();
|
||||||
|
@ -204,7 +204,7 @@ function angeltypes_list_controller()
|
||||||
global $privileges, $user;
|
global $privileges, $user;
|
||||||
|
|
||||||
if (!in_array('angeltypes', $privileges)) {
|
if (!in_array('angeltypes', $privileges)) {
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$angeltypes = AngelTypes_with_user($user);
|
$angeltypes = AngelTypes_with_user($user);
|
||||||
|
|
|
@ -16,7 +16,7 @@ function event_config_edit_controller()
|
||||||
global $privileges;
|
global $privileges;
|
||||||
|
|
||||||
if (!in_array('admin_event_config', $privileges)) {
|
if (!in_array('admin_event_config', $privileges)) {
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$request = request();
|
$request = request();
|
||||||
|
|
|
@ -249,7 +249,7 @@ function shift_controller()
|
||||||
$request = request();
|
$request = request();
|
||||||
|
|
||||||
if (!in_array('user_shifts', $privileges)) {
|
if (!in_array('user_shifts', $privileges)) {
|
||||||
redirect(page_link_to('?'));
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$request->has('shift_id')) {
|
if (!$request->has('shift_id')) {
|
||||||
|
@ -311,7 +311,7 @@ function shifts_controller()
|
||||||
case 'next':
|
case 'next':
|
||||||
return shift_next_controller();
|
return shift_next_controller();
|
||||||
default:
|
default:
|
||||||
redirect(page_link_to('?'));
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -325,7 +325,7 @@ function shift_next_controller()
|
||||||
global $user, $privileges;
|
global $user, $privileges;
|
||||||
|
|
||||||
if (!in_array('user_shifts', $privileges)) {
|
if (!in_array('user_shifts', $privileges)) {
|
||||||
redirect(page_link_to('?'));
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$upcoming_shifts = ShiftEntries_upcoming_for_user($user);
|
$upcoming_shifts = ShiftEntries_upcoming_for_user($user);
|
||||||
|
|
|
@ -192,7 +192,7 @@ function user_controller()
|
||||||
$user_source = User($request->input('user_id'));
|
$user_source = User($request->input('user_id'));
|
||||||
if ($user_source == null) {
|
if ($user_source == null) {
|
||||||
error(_('User not found.'));
|
error(_('User not found.'));
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ function guest_register()
|
||||||
return User_registration_success_view($event_config['event_welcome_msg']);
|
return User_registration_success_view($event_config['event_welcome_msg']);
|
||||||
}
|
}
|
||||||
|
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ function load_rooms()
|
||||||
);
|
);
|
||||||
if (empty($rooms)) {
|
if (empty($rooms)) {
|
||||||
error(_('The administration has not configured any rooms yet.'));
|
error(_('The administration has not configured any rooms yet.'));
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
return $rooms;
|
return $rooms;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ function load_days()
|
||||||
|
|
||||||
if (empty($days)) {
|
if (empty($days)) {
|
||||||
error(_('The administration has not configured any shifts yet.'));
|
error(_('The administration has not configured any shifts yet.'));
|
||||||
redirect('?');
|
redirect(page_link_to('/'));
|
||||||
}
|
}
|
||||||
return $days;
|
return $days;
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ function load_types()
|
||||||
|
|
||||||
if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes` WHERE `restricted` = 0'))) {
|
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.'));
|
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('
|
$types = DB::select('
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in New Issue