From d4bba0d468d6da12a435031d44aebf2591aa530a Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 22 Aug 2016 19:03:18 +0200 Subject: remove exit code from shifts controller --- includes/pages/user_ical.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'includes/pages') 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 @@ -27,23 +27,6 @@ function user_ical() { send_ical_from_shifts($ical_shifts); } -/** - * 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. * -- cgit v1.2.3-54-g00ecf