diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-28 16:21:10 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-28 17:34:00 +0200 |
commit | 73175e2b64c85c7a8c528c76452cd82ffa99f925 (patch) | |
tree | 7464fe30c04fe245424646a98cfd6247d060e517 /includes/controller/rooms_controller.php | |
parent | e1762e7764d4ee4f37757ecd2630f62a440dbf0e (diff) |
#337: Added routing
Diffstat (limited to 'includes/controller/rooms_controller.php')
-rw-r--r-- | includes/controller/rooms_controller.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/controller/rooms_controller.php b/includes/controller/rooms_controller.php index 2d6f1a77..81b0113e 100644 --- a/includes/controller/rooms_controller.php +++ b/includes/controller/rooms_controller.php @@ -1,4 +1,5 @@ <?php + use Engelsystem\ShiftsFilter; use Engelsystem\ShiftsFilterRenderer; @@ -91,7 +92,7 @@ function rooms_controller() */ function room_link($room) { - return page_link_to('rooms') . '&action=view&room_id=' . $room['RID']; + return page_link_to('rooms', ['action' => 'view', 'room_id' => $room['RID']]); } /** @@ -100,7 +101,7 @@ function room_link($room) */ function room_edit_link($room) { - return page_link_to('admin_rooms') . '&show=edit&id=' . $room['RID']; + return page_link_to('admin_rooms', ['show' => 'edit', 'id' => $room['RID']]); } /** |