From dd4530d760b02693425d39ae579dff514c3e40b4 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 30 Dec 2012 17:58:23 +0100 Subject: User Nick function, enhanced log with some links --- includes/pages/user_myshifts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/pages/user_myshifts.php') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index aa4a1e1b..08e8e77f 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -39,13 +39,13 @@ function user_myshifts() { $comment = strip_request_item_nl('comment'); $user_source = User($shift['UID']); sql_query("UPDATE `ShiftEntry` SET `Comment`='" . sql_escape($comment) . "' WHERE `id`=" . sql_escape($id) . " LIMIT 1"); - engelsystem_log("Updated " . $user_source['Nick'] . "'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); + 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("Schicht gespeichert."); redirect(page_link_to('user_myshifts')); } return template_render('../templates/user_shifts_add.html', array ( - 'angel' => $shifts_user['Nick'], + 'angel' => User_Nick_render($shifts_user), 'date' => date("Y-m-d H:i", $shift['start']) . ', ' . shift_length($shift), 'location' => $shift['Name'], 'title' => $shift['name'], @@ -92,7 +92,7 @@ function user_myshifts() { if($user['UID'] == $user_source['UID']) $shift_entries[] = '' . $user_source['Nick'] . ''; else - $shift_entries[] = $user_source['Nick']; + $shift_entries[] = User_Nick_render($user_source); } $html .= join(", ", $shift_entries); } -- cgit v1.2.3-70-g09d2