summaryrefslogtreecommitdiff
path: root/includes/controller/shifts_controller.php
diff options
context:
space:
mode:
authorMoritz Kaspar Rudert (mortzu) <me@mortzu.de>2014-09-08 08:38:08 +0200
committerMoritz Kaspar Rudert (mortzu) <me@mortzu.de>2014-09-08 08:38:08 +0200
commit27b82236115df5db560e7015248574575441a551 (patch)
tree5241530d84c75068863b875d7712fbea7f81e16b /includes/controller/shifts_controller.php
parentda49eeda6e719d7d9449fcb4cfaed2464100221c (diff)
removed bootstrap.php
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r--includes/controller/shifts_controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php
index 6e5b71fd..868e903b 100644
--- a/includes/controller/shifts_controller.php
+++ b/includes/controller/shifts_controller.php
@@ -45,7 +45,7 @@ function shifts_json_export_controller() {
die("No privilege for shifts_json_export.");
if (isset($_REQUEST['export']) && $_REQUEST['export'] == 'user_shifts') {
- require_once ('includes/pages/user_shifts.php');
+ require_once realpath(__DIR__ . '/../pages/user_shifts.php');
view_user_shifts();
} else {
$ical_shifts = sql_select("SELECT `Shifts`.*, `Room`.`Name` as `room_name` FROM `ShiftEntry` INNER JOIN `Shifts` ON (`ShiftEntry`.`SID` = `Shifts`.`SID`) INNER JOIN `Room` ON (`Shifts`.`RID` = `Room`.`RID`) WHERE `UID`=" . sql_escape($user['UID']) . " ORDER BY `start`");