summaryrefslogtreecommitdiff
path: root/includes/pages/user_myshifts.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-09-10 14:27:31 +0200
committerPhilip Häusler <msquare@notrademark.de>2013-09-10 14:27:31 +0200
commita47b1935cb6310e05e4e6b15512b21b7cd4eec3c (patch)
treec966f9f44aace4f40baf2d55bd7c9ffc6c45a85f /includes/pages/user_myshifts.php
parent4b2284797641c7c824a6d5efe32bd48884223d94 (diff)
#119 added basic shift json export support using same pattern like ical export
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r--includes/pages/user_myshifts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php
index 4fec4872..a19ee34e 100644
--- a/includes/pages/user_myshifts.php
+++ b/includes/pages/user_myshifts.php
@@ -17,7 +17,7 @@ function user_myshifts() {
if (isset ($_REQUEST['reset'])) {
if ($_REQUEST['reset'] == "ack") {
- user_reset_ical_key($user);
+ User_reset_api_key($user);
success("Key geändert.");
redirect(page_link_to('user_myshifts'));
}
@@ -118,7 +118,7 @@ function user_myshifts() {
'actions' => "Aktion"
), $myshifts_table),
$id == $user['UID'] && count($shifts) == 0 ? error(sprintf(Get_Text('pub_myshifts_goto_shifts'), page_link_to('user_shifts')), true) : '',
- "<h2>iCal Export</h2>" . sprintf(Get_Text('inc_schicht_ical_text'), page_link_to_absolute('ical') . '&key=' . $shifts_user['ical_key'], page_link_to('user_myshifts') . '&reset')
+ "<h2>iCal Export</h2>" . sprintf(Get_Text('inc_schicht_ical_text'), page_link_to_absolute('ical') . '&key=' . $shifts_user['api_key'], page_link_to('user_myshifts') . '&reset')
));
}
?>