summaryrefslogtreecommitdiff
path: root/includes/pages/user_myshifts.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-09-28 15:01:02 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-09-28 15:01:02 +0200
commitbd2a8b441f16c6a1beb0b38e787be3d75a1b8da2 (patch)
treee483ae40f60c416ef7443210e016ff0684a3f56c /includes/pages/user_myshifts.php
parent1d9e1c467cf4d3920f9bcf0157481c7ca8ea6d5d (diff)
clear up mvc for user list
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r--includes/pages/user_myshifts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php
index 3a3f6712..35aa8f54 100644
--- a/includes/pages/user_myshifts.php
+++ b/includes/pages/user_myshifts.php
@@ -1,4 +1,5 @@
<?php
+
function myshifts_title() {
return _("My shifts");
}
@@ -64,7 +65,7 @@ function user_myshifts() {
LIMIT 1");
engelsystem_log("Updated " . User_Nick_render($user_source) . "'s shift " . $shift['name'] . " from " . date("y-m-d H:i", $shift['start']) . " to " . date("y-m-d H:i", $shift['end']) . " with comment " . $comment);
success(_("Shift saved."));
- redirect(page_link_to('user_myshifts'));
+ redirect(page_link_to('users') . '&action=view&user_id=' . $shifts_user['UID']);
}
return ShiftEntry_edit_view(User_Nick_render($shifts_user), date("Y-m-d H:i", $shift['start']) . ', ' . shift_length($shift), $shift['Name'], $shift['name'], $shift['angel_type'], $shift['Comment'], $shift['freeloaded'], $shift['freeload_comment'], in_array("user_shifts_admin", $privileges));