bugifx from jan

This commit is contained in:
Lars Kneschke 2006-05-18 14:21:29 +00:00
parent e612d2c15f
commit 87dcfb1c10

View File

@ -49,7 +49,9 @@ class Horde_iCalendar {
# require_once 'Horde/String.php'; # require_once 'Horde/String.php';
$type = strtolower($type); $type = strtolower($type);
$class = 'Horde_iCalendar_' . strtolower($type); $class = 'Horde_iCalendar_' . strtolower($type);
if (!class_exists($class)) {
include_once dirname(__FILE__) . '/iCalendar/' . $type . '.php'; include_once dirname(__FILE__) . '/iCalendar/' . $type . '.php';
}
if (class_exists($class)) { if (class_exists($class)) {
$component = &new $class(); $component = &new $class();
if ($container !== false) { if ($container !== false) {