diff options
author | Daniel Lange <DLange@git.local> | 2017-02-20 18:08:20 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2017-02-20 18:08:20 +0100 |
commit | 7a4da3f67cb891cd5408bb4b511a54ccf9662485 (patch) | |
tree | ff42d5c30e915572e92bdd766c314ed63d297cc9 /functions/init | |
parent | 2d456c0e41e848705db325e461d0272f295f8a2f (diff) | |
download | phpicalendar-7a4da3f67cb891cd5408bb4b511a54ccf9662485.tar.gz phpicalendar-7a4da3f67cb891cd5408bb4b511a54ccf9662485.tar.bz2 phpicalendar-7a4da3f67cb891cd5408bb4b511a54ccf9662485.zip |
Fix yearly display from Sourceforge #678
Diffstat (limited to 'functions/init')
-rw-r--r-- | functions/init/date_range.php | 8 |
1 files changed, 7 insertions, 1 deletions
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': |