Ignore:
Timestamp:
03/23/12 16:39:10 (12 years ago)
Author:
acoutinho
Message:

Ticket #2434 - Implementada funcionalidade de criacao de agenda para contas compartilhadas e imposicao de agendas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/interceptors/Notifications.php

    r5523 r5804  
    148148 
    149149                $data['nowStartDate'] = date_format( $sTime , 'd/m/Y'); 
    150         $data['nowStartTime'] = ($schedulableReference['allDay']) ? '' : date_format( $sTime , 'H:i'); 
    151         $data['nowEndDate'] = date_format( $eTime , 'd/m/Y'); 
    152         $data['nowEndTime'] = ($schedulableReference['allDay']) ? '' :  date_format( $eTime , 'H:i'); 
     150                $data['nowStartTime'] = ($schedulableReference['allDay']) ? '' : date_format( $sTime , 'H:i'); 
     151                $data['nowEndDate'] = date_format( $eTime , 'd/m/Y'); 
     152                $data['nowEndTime'] = ($schedulableReference['allDay']) ? '' :  date_format( $eTime , 'H:i'); 
    153153                $data['userRequest'] = Config::me('uid'); 
    154154                 
     
    161161                $params['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/modules/calendar/templates/notify_suggestion_body.tpl'); 
    162162                $params['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/modules/calendar/templates/notify_subject.tpl');; 
    163                 $params['from'] = Config::me('mail');    
     163                $params['from'] ='"'.Config::me('cn').'" <'.Config::me('mail').'>';    
    164164                $params['to'] = $organizer['user']['mail']; 
    165165                 
     
    192192                $params['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/modules/calendar/templates/notify_subject.tpl');; 
    193193                $params['to'] = $params['from']; 
    194                 $params['from'] = Config::me('mail');    
     194                $params['from'] = $params['from'] ='"'.Config::me('cn').'" <'.Config::me('mail').'>'; 
    195195        } 
    196196         
     
    435435       $mail['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/modules/calendar/templates/'.$template.'.tpl'); 
    436436       $mail['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/modules/calendar/templates/notify_subject.tpl');; 
    437        $mail['from'] = Config::me('mail');    
     437       $mail['from'] = '"'.Config::me('cn').'" <'.Config::me('mail').'>'; 
    438438       $mail['to'] = $to; 
    439439       Controller::create( array( 'service' => 'SMTP' ), $mail );  
Note: See TracChangeset for help on using the changeset viewer.