Changeset 3374


Ignore:
Timestamp:
10/19/10 14:23:14 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1381 - Corrige exportacao de vcard(s) no módulo calendario.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.bocalendar.inc.php

    r3350 r3374  
    27362736                } 
    27372737 
    2738                 function create_vcard($event_array) 
    2739                 { 
    2740                         if(!is_array($event_array)) 
    2741                                 return null; 
    2742                          
     2738                function create_vcard($event_arrays) 
     2739                { 
     2740                    if(!is_array($event_arrays)) 
     2741                        return null; 
     2742                    $tmpattach="BEGIN:VCALENDAR\n" 
     2743                        ."PRODID:-//Expresso Livre//Calendar//EN\n" 
     2744                        ."VERSION:1.0\n"; 
     2745                    foreach ($event_arrays as $event_array) 
     2746                    { 
    27432747                        $sy = $event_array['start']['year']; 
    27442748                        $sm = $event_array['start']['month']; 
     
    27592763                        $description = str_replace("\n","\n ", $event_array['description']); 
    27602764                         
    2761                         $tmpattach="BEGIN:VCALENDAR\r\n" 
    2762                         ."PRODID:-//Expresso Livre//Calendar//EN\r\n" 
    2763                         ."VERSION:1.0\r\n" 
    2764                         ."BEGIN:VEVENT\r\n" 
     2765                        $tmpattach.="BEGIN:VEVENT\r\n" 
    27652766                        ."DTSTART:".$dtstart."\r\n" 
    27662767                        ."DTEND:".$dtend."\r\n" 
     
    27702771                        ."SUMMARY:".$event_array['title']."\r\n" 
    27712772                        ."LOCATION:".$event_array['location']."\r\n" 
    2772                         ."END:VEVENT\r\n" 
    2773                         ."END:VCALENDAR\r\n"; 
    2774                          
    2775                         return $tmpattach; 
     2773                        ."END:VEVENT\r\n"; 
     2774                    } 
     2775                    $tmpattach.="END:VCALENDAR\r\n"; 
     2776                    return $tmpattach; 
    27762777                } 
    27772778 
Note: See TracChangeset for help on using the changeset viewer.