From ec40e10ebd3c343f393a11d8120d197996e4bd69 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 15 Nov 2016 16:58:12 +0100 Subject: [PATCH] fix unused code --- includes/sys_menu.php | 2 +- includes/view/User_view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 854bfd2e..e1a6a12e 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -16,7 +16,7 @@ function page_link_to_absolute($page) { * Render the user hints */ function header_render_hints() { - global $user, $page, $enable_tshirt_size, $max_freeloadable_shifts; + global $user; $hints_renderer = new UserHintsRenderer(); diff --git a/includes/view/User_view.php b/includes/view/User_view.php index ef7abad6..6cd48899 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -426,7 +426,7 @@ function render_user_departure_date_hint() { } function render_user_freeloader_hint() { - global $user; + global $user, $max_freeloadable_shifts; if (User_is_freeloader($user)) { return sprintf(_("You freeloaded at least %s shifts. Shift signup is locked. Please go to heavens desk to be unlocked again."), $max_freeloadable_shifts);