diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 942b8849..7156212a 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -176,6 +176,9 @@ function view_user_shifts() $days = load_days(); $rooms = load_rooms(); $types = load_types(); + $locale = $session->get('locale'); + $shortLocale = substr($locale, 0, 2); + if (!$session->has('shifts-filter')) { $room_ids = [ @@ -253,6 +256,7 @@ function view_user_shifts() ), ] ), + 'short_locale' => $shortLocale, 'filled_select' => make_select($filled, $shiftsFilter->getFilled(), 'filled', __('Occupancy')), 'task_notice' => '1' diff --git a/includes/sys_form.php b/includes/sys_form.php index b5a957c0..3c31f43e 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -72,23 +72,10 @@ function form_date($name, $label, $value, $start_date = '', $end_date = '') $shortLocale = substr($locale, 0, 2); return form_element($label, ' -