From 7791528e4b3ab64379c28c90eb54bd45f3035f18 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 20 Nov 2010 21:53:41 +0000 Subject: [PATCH] only year-align given date, not always use current year, if date is specified --- calendar/sitemgr/class.module_calendar_planner.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/sitemgr/class.module_calendar_planner.inc.php b/calendar/sitemgr/class.module_calendar_planner.inc.php index 91f8e3a6d8..986cdb93fe 100644 --- a/calendar/sitemgr/class.module_calendar_planner.inc.php +++ b/calendar/sitemgr/class.module_calendar_planner.inc.php @@ -197,7 +197,7 @@ class module_calendar_planner extends Module if ($arguments['sortby'] == 'yearly') { $arguments['sortby'] = 'month'; - $arguments['date'] = date('Y0101'); + $arguments['date'] = substr($arguments['date'],0,4).'0101'; } if (isset($_GET['date'])) $arguments['date'] = $_GET['date']; if (empty($arguments['cat_id'])) $arguments['cat_id'] = 0; @@ -209,7 +209,7 @@ class module_calendar_planner extends Module { unset($arguments['resources'][$index]); } - } + } } $params = $arguments;