From 50f24271eb0c3aea6dbb91ab28ebd5682ac59cae Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 19 Nov 2017 10:45:08 +0100 Subject: fix all redirects to home (because of new urls redirect to ? wont work anymore) --- includes/pages/user_shifts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/user_shifts.php') diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 24b9251a..f8cf71cd 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -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 -- cgit v1.2.3-54-g00ecf