diff options
author | Philip Häusler <msquare@notrademark.de> | 2015-12-28 17:47:02 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2015-12-28 17:47:02 +0100 |
commit | 4684d708fb93304379314bea24ca8d5648877108 (patch) | |
tree | 390c686269a57fd7f1cac1a782a2777073e4db78 /includes/pages | |
parent | 99d36e47b8cd0aeaaa7ef2eca774c087ec3bf20c (diff) |
better shift cancel messages and workflow
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/user_myshifts.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 9e76636c..278a7134 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -22,7 +22,7 @@ function user_myshifts() { if ($_REQUEST['reset'] == "ack") { User_reset_api_key($user); success(_("Key changed.")); - redirect(page_link_to('user_myshifts')); + redirect(page_link_to('users') . '&action=view&user_id=' . $shifts_user['UID']); } return page_with_title(_("Reset API key"), array( error(_("If you reset the key, the url to your iCal- and JSON-export and your atom feed changes! You have to update it in every application using one of these exports."), true), @@ -94,7 +94,7 @@ function user_myshifts() { $shifttype = ShiftType($shift['shifttype_id']); engelsystem_log("Deleted own shift: " . $shifttype['name'] . " at " . $room['Name'] . " from " . date("Y-m-d H:i", $shift['start']) . " to " . date("Y-m-d H:i", $shift['end']) . " as " . $angeltype['name']); - success(_("You have been signed off from the shift.")); + success(_("Shift canceled.")); } else error(_("It's too late to sign yourself off the shift. If neccessary, ask the dispatcher to do so.")); } else |