[kronolith] [todays CVS] a little patch

W. Tasin tasin at fhm.edu
Sat Mar 27 07:44:18 PST 2004


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




More information about the kronolith mailing list