Automatically display new remote calendars.
authorJan Schneider <jan@horde.org>
Tue, 20 Apr 2010 14:04:41 +0000 (16:04 +0200)
committerJan Schneider <jan@horde.org>
Tue, 20 Apr 2010 15:03:01 +0000 (17:03 +0200)
kronolith/lib/Kronolith.php

index cd35a08..11bcf2c 100644 (file)
@@ -1802,6 +1802,8 @@ class Kronolith
             }
         } else {
             $remote_calendars[] = $info;
+            $GLOBALS['display_remote_calendars'][] = $info['url'];
+            $GLOBALS['prefs']->setValue('display_remote_cals', serialize($GLOBALS['display_remote_calendars']));
         }
 
         $GLOBALS['prefs']->setValue('remote_cals', serialize($remote_calendars));