fix unused code

This commit is contained in:
msquare 2016-11-15 16:58:12 +01:00
parent 53a306f14b
commit ec40e10ebd
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ function page_link_to_absolute($page) {
* Render the user hints * Render the user hints
*/ */
function header_render_hints() { function header_render_hints() {
global $user, $page, $enable_tshirt_size, $max_freeloadable_shifts; global $user;
$hints_renderer = new UserHintsRenderer(); $hints_renderer = new UserHintsRenderer();

View File

@ -426,7 +426,7 @@ function render_user_departure_date_hint() {
} }
function render_user_freeloader_hint() { function render_user_freeloader_hint() {
global $user; global $user, $max_freeloadable_shifts;
if (User_is_freeloader($user)) { 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); return sprintf(_("You freeloaded at least %s shifts. Shift signup is locked. Please go to heavens desk to be unlocked again."), $max_freeloadable_shifts);