summaryrefslogtreecommitdiff
path: root/includes/controller/rooms_controller.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-12-28 14:53:35 +0100
committermsquare <msquare@notrademark.de>2016-12-28 14:53:35 +0100
commit4407604793e0a7b99122e306ae710304846cf3ea (patch)
tree248393d3b2d7271d823e8b4258b060e74ce05cc1 /includes/controller/rooms_controller.php
parent6c4bb0da3170ca365c6ef01991e26f26dd29fb30 (diff)
move data sorting to begin
Diffstat (limited to 'includes/controller/rooms_controller.php')
-rw-r--r--includes/controller/rooms_controller.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/controller/rooms_controller.php b/includes/controller/rooms_controller.php
index 24bf5220..a79034fb 100644
--- a/includes/controller/rooms_controller.php
+++ b/includes/controller/rooms_controller.php
@@ -43,13 +43,11 @@ function room_controller() {
$shiftsFilterRenderer = new ShiftsFilterRenderer($shiftsFilter);
$shiftsFilterRenderer->enableDaySelection($days);
- $shifts = Shifts_by_ShiftsFilter($shiftsFilter);
- $needed_angeltypes = NeededAngeltypes_by_ShiftsFilter($shiftsFilter);
- $shift_entries = ShiftEntries_by_ShiftsFilter($shiftsFilter);
+ $shiftCalendarRenderer = shiftCalendarRendererByShiftFilter($shiftsFilter);
return [
$room['Name'],
- Room_view($room, $shiftsFilterRenderer, new ShiftCalendarRenderer($shifts, $needed_angeltypes, $shift_entries, $shiftsFilter))
+ Room_view($room, $shiftsFilterRenderer, $shiftCalendarRenderer)
];
}