| @@ 1905-1912 (lines=8) @@ | ||
| 1902 | if (!$eventid) $eventid = -1; |
|
| 1903 | $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true); |
|
| 1904 | //error_log(__METHOD__.$event); |
|
| 1905 | if ((int)$event > 0) |
|
| 1906 | { |
|
| 1907 | $vars = array( |
|
| 1908 | 'menuaction' => 'calendar.calendar_uiforms.edit', |
|
| 1909 | 'cal_id' => $event, |
|
| 1910 | ); |
|
| 1911 | $GLOBALS['egw']->redirect_link('../index.php',$vars); |
|
| 1912 | } |
|
| 1913 | //Import failed, download content anyway |
|
| 1914 | } |
|
| 1915 | if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD') |
|
| @@ 2473-2480 (lines=8) @@ | ||
| 2470 | if (!$eventid) $eventid = -1; |
|
| 2471 | $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true,0,'',null,$attachment['charset']); |
|
| 2472 | //error_log(__METHOD__.$event); |
|
| 2473 | if ((int)$event > 0) |
|
| 2474 | { |
|
| 2475 | $vars = array( |
|
| 2476 | 'menuaction' => 'calendar.calendar_uiforms.edit', |
|
| 2477 | 'cal_id' => $event, |
|
| 2478 | ); |
|
| 2479 | Egw::redirect_link('../index.php',$vars); |
|
| 2480 | } |
|
| 2481 | //Import failed, download content anyway |
|
| 2482 | } |
|
| 2483 | if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD') |
|