From 8c90898a061fe7b58736325eb884e0e8213d36de Mon Sep 17 00:00:00 2001 From: Thomas B Date: Wed, 2 May 2012 17:10:53 +0200 Subject: [PATCH] Try loading Horde classes from default location first --- plugins/calendar/lib/calendar_ical.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/calendar/lib/calendar_ical.php b/plugins/calendar/lib/calendar_ical.php index dd613724..5aa51953 100644 --- a/plugins/calendar/lib/calendar_ical.php +++ b/plugins/calendar/lib/calendar_ical.php @@ -124,7 +124,10 @@ class calendar_ical private function get_parser() { // use Horde:iCalendar to parse vcalendar file format - require_once($this->cal->home . '/lib/Horde_iCalendar.php'); + @include_once('Horde/iCalendar.php'); + + if (!class_exists('Horde_iCalendar')) + require_once($this->cal->home . '/lib/Horde_iCalendar.php'); // set target charset for parsed events $GLOBALS['_HORDE_STRING_CHARSET'] = RCMAIL_CHARSET;