From kronolith Sat Mar 27 15:44:18 2004 From: "W. Tasin" Date: Sat, 27 Mar 2004 15:44:18 +0000 To: kronolith Subject: [kronolith] [todays CVS] a little patch Message-Id: <4065A152.7060707 () fhm ! edu> X-MARC-Message: https://marc.info/?l=kronolith&m=108040229222772 Hi, the problem is workweek view and week view in FBView doesn't work, causing the following error messages: ---- Mar 27 12:59:51 pcxx-lma Mär 27 12:59:51 httpd: PHP Fatal error: Cannot instantiate non-existent class: horde_icalendar in /usr/local/httpd/horde/kronolith/lib/FBView/week.php on line 36 ---- Here's my patch: ==================================================== --- kronolith/lib/FBView/week.php Fri Mar 12 04:40:07 2004 +++ kronolith/lib/FBView/week.php Sat Mar 27 13:16:25 2004 @@ -33,6 +33,7 @@ $this->_startStamp = mktime(0, 0, 0, date('n', $day), date('j', $day), date('Y', $day)); $this->_endStamp = mktime(23, 59, 59, date('n', $day) + 6, date('j', $day), date('Y', $day)); + require_once HORDE_LIBS . 'Horde/iCalendar.php'; $vCal = new Horde_iCalendar(); $required = &Horde_iCalendar::newComponent('vfreebusy', $vCal); foreach ($this->_requiredMembers as $member) { --- kronolith/lib/FBView/workweek.php Fri Mar 12 04:40:08 2004 +++ kronolith/lib/FBView/workweek.php Sat Mar 27 13:18:07 2004 @@ -34,6 +34,7 @@ $this->_startStamp = mktime(0, 0, 0, date('n', $day), date('j', $day), date('Y', $day)); $this->_endStamp = mktime(23, 59, 59, date('n', $day) + 4, date('j', $day), date('Y', $day)); + require_once HORDE_LIBS . 'Horde/iCalendar.php'; $vCal = new Horde_iCalendar(); $required = &Horde_iCalendar::newComponent('vfreebusy', $vCal); foreach ($this->_requiredMembers as $member) { ==================================================== Ciao Walter -- Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org