summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-08-22 19:03:18 +0200
committermsquare <msquare@notrademark.de>2016-08-22 19:03:18 +0200
commitd4bba0d468d6da12a435031d44aebf2591aa530a (patch)
treed42dcf8b22d1222e21debb9ec6a76cd43bc38648 /includes/pages
parentde917bc54323f75381c419836d5ee591bc11e311 (diff)
remove exit code from shifts controller
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/user_ical.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php
index 8db01b62..f82b4122 100644
--- a/includes/pages/user_ical.php
+++ b/includes/pages/user_ical.php
@@ -28,23 +28,6 @@ function user_ical() {
}
/**
- * Returns shifts to export.
- * Users shifts or user_shifts filter based shifts if export=user_shifts is given as param.
- */
-function load_ical_shifts() {
- global $user, $ical_shifts;
-
- if (isset($_REQUEST['export']) && $_REQUEST['export'] == 'user_shifts') {
- require_once realpath(__DIR__ . '/user_shifts.php');
- view_user_shifts();
-
- return $ical_shifts;
- }
-
- return Shifts_by_user($user);
-}
-
-/**
* Renders an ical calender from given shifts array.
*
* @param array<Shift> $shifts