| @@ 1911-1918 (lines=8) @@ | ||
| 1908 | if (!$eventid) $eventid = -1; |
|
| 1909 | $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true); |
|
| 1910 | //error_log(__METHOD__.$event); |
|
| 1911 | if ((int)$event > 0) |
|
| 1912 | { |
|
| 1913 | $vars = array( |
|
| 1914 | 'menuaction' => 'calendar.calendar_uiforms.edit', |
|
| 1915 | 'cal_id' => $event, |
|
| 1916 | ); |
|
| 1917 | $GLOBALS['egw']->redirect_link('../index.php',$vars); |
|
| 1918 | } |
|
| 1919 | //Import failed, download content anyway |
|
| 1920 | } |
|
| 1921 | if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD') |
|
| @@ 2598-2605 (lines=8) @@ | ||
| 2595 | if (!$eventid) $eventid = -1; |
|
| 2596 | $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true,0,'',null,$attachment['charset']); |
|
| 2597 | //error_log(__METHOD__.$event); |
|
| 2598 | if ((int)$event > 0) |
|
| 2599 | { |
|
| 2600 | $vars = array( |
|
| 2601 | 'menuaction' => 'calendar.calendar_uiforms.edit', |
|
| 2602 | 'cal_id' => $event, |
|
| 2603 | ); |
|
| 2604 | Egw::redirect_link('../index.php',$vars); |
|
| 2605 | } |
|
| 2606 | //Import failed, download content anyway |
|
| 2607 | } |
|
| 2608 | if (strtoupper($attachment['type']) == 'TEXT/X-VCARD' || strtoupper($attachment['type']) == 'TEXT/VCARD') |
|