Convert old timeobject preferences.
authorJan Schneider <jan@horde.org>
Wed, 4 Nov 2009 14:56:14 +0000 (15:56 +0100)
committerJan Schneider <jan@horde.org>
Wed, 4 Nov 2009 14:58:57 +0000 (15:58 +0100)
kronolith/lib/Kronolith.php

index 6f69873..a7cf7e3 100644 (file)
@@ -894,6 +894,12 @@ class Kronolith
                 $calendarId = $api . '/' . $id;
                 if (in_array($calendarId, $_temp)) {
                     $GLOBALS['display_external_calendars'][] = $calendarId;
+                } else {
+                    /* Convert Kronolith 2 preferences. */
+                    list($oldid,) = explode('/', $id);
+                    if (in_array($api . '/' . $oldid, $_temp)) {
+                        $GLOBALS['display_external_calendars'][] = $calendarId;
+                    }
                 }
             }
         }