From 7a4da3f67cb891cd5408bb4b511a54ccf9662485 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 20 Feb 2017 18:08:20 +0100 Subject: Fix yearly display from Sourceforge #678 --- functions/init/date_range.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/init/date_range.php b/functions/init/date_range.php index e202b6d..6257304 100644 --- a/functions/init/date_range.php +++ b/functions/init/date_range.php @@ -26,7 +26,13 @@ if ($this_month == 12){ $end_month = 1; $end_year++; } -switch ($current_view){ + +$current_view_time = $current_view; +if($current_view_time == 'print'){ + $current_view_time = 'year'; +} + +switch ($current_view_time){ case 'month': case 'week': case 'day': -- cgit v1.2.3