From 99071fb146eea60f047732bac62c47af045d3988 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 4 Nov 2009 15:56:14 +0100 Subject: [PATCH] Convert old timeobject preferences. --- kronolith/lib/Kronolith.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 6f69873ab..a7cf7e376 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -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; + } } } } -- 2.11.0