only year-align given date, not always use current year, if date is specified

This commit is contained in:
Ralf Becker 2010-11-20 21:54:06 +00:00
parent fa5c680e31
commit 2fbae2e1f1

View File

@ -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;