[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kronolith
Subject:    [kronolith] [todays CVS] a little patch
From:       "W. Tasin" <tasin () fhm ! edu>
Date:       2004-03-27 15:44:18
Message-ID: 4065A152.7060707 () fhm ! edu
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic