- Timestamp:
- 03/23/12 16:39:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/Notifications.php
r5523 r5804 148 148 149 149 $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'); 153 153 $data['userRequest'] = Config::me('uid'); 154 154 … … 161 161 $params['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/modules/calendar/templates/notify_suggestion_body.tpl'); 162 162 $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').'>'; 164 164 $params['to'] = $organizer['user']['mail']; 165 165 … … 192 192 $params['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/modules/calendar/templates/notify_subject.tpl');; 193 193 $params['to'] = $params['from']; 194 $params['from'] = Config::me('mail');194 $params['from'] = $params['from'] ='"'.Config::me('cn').'" <'.Config::me('mail').'>'; 195 195 } 196 196 … … 435 435 $mail['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/modules/calendar/templates/'.$template.'.tpl'); 436 436 $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').'>'; 438 438 $mail['to'] = $to; 439 439 Controller::create( array( 'service' => 'SMTP' ), $mail );
Note: See TracChangeset
for help on using the changeset viewer.