Make Horde library optional
This commit is contained in:
parent
7cb7f5316e
commit
3a05fb691f
1 changed files with 8 additions and 7 deletions
|
@ -47,15 +47,16 @@ class libkolab extends rcube_plugin
|
|||
$rcmail = rcmail::get_instance();
|
||||
kolab_format::$timezone = new DateTimeZone($rcmail->config->get('timezone', 'GMT'));
|
||||
|
||||
// load (old) dependencies
|
||||
require_once 'Horde/Util.php';
|
||||
require_once 'Horde/Kolab/Format.php';
|
||||
require_once 'Horde/Kolab/Format/XML.php';
|
||||
require_once 'Horde/Kolab/Format/XML/contact.php';
|
||||
require_once 'Horde/Kolab/Format/XML/event.php';
|
||||
// load (old) dependencies if available
|
||||
if (@include_once('Horde/Util.php')) {
|
||||
include_once 'Horde/Kolab/Format.php';
|
||||
include_once 'Horde/Kolab/Format/XML.php';
|
||||
include_once 'Horde/Kolab/Format/XML/contact.php';
|
||||
include_once 'Horde/Kolab/Format/XML/event.php';
|
||||
|
||||
String::setDefaultCharset('UTF-8');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook into IMAP FETCH HEADER.FIELDS command and request Kolab-specific headers
|
||||
|
|
Loading…
Add table
Reference in a new issue