Changeset 3973


Ignore:
Timestamp:
04/11/11 14:09:50 (10 years ago)
Author:
rafaelraymundo
Message:

Ticket #189 - Corrigidas traduções. Adicionada condicional necessária p envio do anexo

Location:
branches/2.2.0.1/calendar
Files:
3 edited

Legend:

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

    r3968 r3973  
    34733473                        //Inicializa variï¿œvel de retorno. 
    34743474                        $returncode=true;                        
    3475                         if(count($mail->to)) {                           
     3475                        if(count($mail->to)) { 
     3476 
     3477                            if(isset($new_event['attachment'])){ 
     3478                                foreach($new_event['attachment'] as $attach){ 
     3479                                    $mail->AddAttachment($attach['tmp_name'], $attach['name'], "base64", $attach['type']); 
     3480                                } 
     3481                            } 
    34763482                                // Envia aviso a todos os participantes. 
    34773483                                if(!$mail->Send()) {                             
  • branches/2.2.0.1/calendar/setup/tables_update.inc.php

    r3968 r3973  
    8080                return $GLOBALS['setup_info']['calendar']['currentver']; 
    8181        } 
    82         $test[] = '2.2.001'; 
    83         function calendar_upgrade2_2_001() 
    84         { 
    85             $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN attachment text"); 
    86         } 
    87  
    88         $test[] = '2.2.002'; 
    89         function calendar_upgrade2_2_002() 
     82        $test[] = '2.2.000'; 
     83        function calendar_upgrade2_2_000() 
    9084        { 
    9185            $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN alter_by varchar(160)"); 
    92             $GLOBALS['setup_info']['calendar']['currentver'] = '2.2.003'; 
     86            $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN attachment text"); 
     87            $GLOBALS['setup_info']['calendar']['currentver'] = '2.2.001'; 
    9388            return $GLOBALS['setup_info']['calendar']['currentver']; 
    9489        } 
Note: See TracChangeset for help on using the changeset viewer.