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:53:41 +00:00
parent d713925480
commit 7791528e4b

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;