Horde_iCalendar::newComponent(): include relative from current dir, as we no longer set (old) Horde dir in include path

This commit is contained in:
Ralf Becker 2014-04-01 13:41:45 +00:00
parent 71b97568e5
commit 97dc98453c

View File

@ -82,7 +82,8 @@ class Horde_iCalendar {
$type = String::lower($type);
$class = 'Horde_iCalendar_' . $type;
if (!class_exists($class)) {
include 'Horde/iCalendar/' . $type . '.php';
// include relative from current dir, as we no longer set (old) Horde dir in include path
include 'iCalendar/' . $type . '.php';
}
if (class_exists($class)) {
$component = new $class();