[kronolith] Calling Kronolith::listCalendars() inside config/prefs.php?

Chuck Hagenbuch chuck at horde.org
Mon May 8 21:44:10 PDT 2006


Quoting Mike Dorman <dorm at dorm.org>:

> I would like to configure my kronolith preferences to display all calendars
> by default (display_cals).  So I thought I would just call
> Kronolith::listCalendars() in prefs.php and then use that array to assign to
> the preferences value.
>
> But I'm running into a chicken and the egg problem, where I need the
> kronolith class loaded in prefs.php, but prefs.php is included by
> lib/base.php.

Don't include base.php, include only the needed libraries and  
instantiate the Share object directly.

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the kronolith mailing list