[kronolith] Wrong calendar in horde Summary page
Akom
lists@akom2.2y.net
Fri, 13 Sep 2002 10:20:48 -0400
The Summary page currently ignores the value of default calendar and insists
on showing the personal calendar.
Here is my attempt at fixing this:
(I'm assuming that base.php did its job and selected either a default or
one based on the user's preferences)
---------------------------------------------
diff -r1.39 api.php
59c59,60
< $calendar->open(Auth::getAuth());
---
> //$calendar->open(Auth::getAuth());
> $calendar->open($GLOBALS['display_calendars'][0]);
71c72
< $events = Kronolith::getEvents($day);
---
> $events = Kronolith::getEvents($day, $GLOBALS['display_calendars']);
---------------------------------------------
Anyone has a better plan?
(I didn't feel like rewriting the iteration algorithm to accomodate multiple
passes)
This does work though.
Akom
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/