$GLOBALS['notification']->push(sprintf(_("You have been subscribed to \"%s\" (%s)."), $calendar['name'], $calendar['url']), 'horde.success');
$result->id = $calendar['url'];
}
+ $wrapper = new Kronolith_Calendar_Remote($calendar);
$result->saved = true;
- $result->color = Kronolith::foregroundColor($calendar);
+ $result->calendar = $wrapper->toHash();
break;
}
*
* @throws Kronolith_Exception
*/
- public static function subscribeRemoteCalendar($info, $update = false)
+ public static function subscribeRemoteCalendar(&$info, $update = false)
{
if (!(strlen($info['name']) && strlen($info['url']))) {
throw new Kronolith_Exception(_("You must specify a name and a URL."));