- Timestamp:
- 07/16/12 16:36:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/Notifications.php
r6528 r6791 276 276 if ((Config::regGet('ical://' . $schedulable['id'] . '/' . $method) === false) || ($method == 'CANCEL')) { //Verifica se o ical ja não esta no reg 277 277 $schedulable['URI']['concept'] = 'schedulable'; 278 $ical['source'] = Controller::format(array('service' => 'iCal'), array($schedulable), array('method' => $method)); 279 $ical['type'] = 'text/plain'; 280 $ical['name'] = 'outlook.ics'; 278 $ical = Controller::format(array('service' => 'iCal'), array($schedulable), array('method' => $method , 'compatible' => true )); 281 279 if ($regSet) 282 280 Config::regSet('ical://' . $schedulable['id'] . '/' . $method, $ical); … … 429 427 */ 430 428 private static function sendMail(&$data, &$ical, $to, &$subject, $template, $from = false) { 431 $ical2 = $ical; 429 430 431 $ical1['type'] = 'text/plain'; 432 $ical1['source'] = $ical['compatible']; 433 $ical1['name'] = 'outlook.ics'; 434 $ical2['source'] = $ical['ical']; 432 435 $ical2['type'] = 'text/calendar'; 433 436 $ical2['name'] = 'thunderbird.ics'; 437 438 unset($ical); 434 439 $mail['attachments'][] = $ical2; 435 $mail['attachments'][] = $ical; 440 $mail['attachments'][] = $ical1; 441 unset($ical1); 442 unset($ical2); 436 443 $mail['isHtml'] = true; 437 444 $mail['body'] = parseTPL::load_tpl($data, ROOTPATH . '/modules/calendar/templates/' . $template . '.tpl');
Note: See TracChangeset
for help on using the changeset viewer.