Ignore:
Timestamp:
01/18/12 16:10:57 (12 years ago)
Author:
cristiano
Message:

Ticket #2434 - Alteração da estrutura de diretórios da nova API

Location:
trunk/prototype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype

    • Property svn:ignore set to
      .links.php.kate-swp
  • trunk/prototype/modules/calendar/interceptors/Notifications.php

    r5341 r5399  
    22require_once ROOTPATH.'/modules/calendar/constants.php'; 
    33require_once ROOTPATH.'/modules/calendar/interceptors/Helpers.php'; 
    4 require_once ROOTPATH.'/app/plugins/icalcreator/iCalcreator.class.php'; 
    5 require_once ROOTPATH.'/app/templates/parseTPL.php'; 
     4require_once ROOTPATH.'/plugins/icalcreator/iCalcreator.class.php'; 
     5require_once ROOTPATH.'/api/parseTPL.php'; 
    66  
    77class Notifications extends Helpers  
     
    140140             
    141141             $subject['notificationType'] = 'Convite de Calendario'; 
    142              $subject['eventTitle'] = $schedulable['summary']; 
     142             $subject['eventTitle'] = mb_convert_encoding($schedulable['summary'],'ISO-8859-1','ISO-8859-1,UTF-8'); 
    143143             $subject['startDate'] = date_format( $sTime , 'd/m/Y'); 
    144144             $subject['startTime'] = ($schedulable['allDay']) ? '' : date_format( $sTime , 'H:i'); 
     
    200200           
    201201        $subject['notificationType'] = 'Convite Aceito'; 
    202         $subject['eventTitle'] = $schedulable['summary']; 
     202        $subject['eventTitle'] = mb_convert_encoding($schedulable['summary'],'ISO-8859-1','ISO-8859-1,UTF-8'); 
    203203        $subject['startDate'] = date_format( $sTime , 'd/m/Y'); 
    204204        $subject['startTime'] = ($schedulable['allDay']) ? '' : date_format( $sTime , 'H:i'); 
     
    241241       $mail['attachments'][] = $ical; 
    242242       $mail['isHtml'] = true;                          
    243        $mail['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/app/templates/'.$template.'.tpl'); 
    244        $mail['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/app/templates/notify_subject.tpl');; 
     243       $mail['body'] = parseTPL::load_tpl( $data ,ROOTPATH.'/modules/calendar/templates/'.$template.'.tpl'); 
     244       $mail['subject'] = parseTPL::load_tpl( $subject ,ROOTPATH.'/modules/calendar/templates/notify_subject.tpl');; 
    245245       $mail['from'] = Config::me('mail');    
    246246       $mail['to'] = $to; 
     
    293293                     
    294294             $subject['notificationType'] = 'Cancelamento de Calendario'; 
    295              $subject['eventTitle'] = $schedulable['summary']; 
     295             $subject['eventTitle'] = mb_convert_encoding($schedulable['summary'],'ISO-8859-1','ISO-8859-1,UTF-8'); 
    296296             $subject['startDate'] = date_format( $sTime , 'd/m/Y'); 
    297297             $subject['startTime'] = ($schedulable['allDay']) ? '' : date_format( $sTime , 'H:i'); 
     
    347347            
    348348             $subject['notificationType'] = 'Cancelamento de Calendario'; 
    349              $subject['eventTitle'] = $schedulable['summary']; 
     349             $subject['eventTitle'] = mb_convert_encoding($schedulable['summary'],'ISO-8859-1','ISO-8859-1,UTF-8'); 
    350350             $subject['startDate'] = date_format( $sTime , 'd/m/Y'); 
    351351             $subject['startTime'] = ($schedulable['allDay']) ? '' : date_format( $sTime , 'H:i'); 
     
    421421 
    422422            $subject['notificationType'] = 'Modificação de Calendario'; 
    423             $subject['eventTitle'] = $schedulable['summary']; 
     423            $subject['eventTitle'] = mb_convert_encoding($schedulable['summary'],'ISO-8859-1','ISO-8859-1,UTF-8'); 
    424424            $subject['startDate'] = date_format($sTime, 'd/m/Y'); 
    425425            $subject['startTime'] = ($schedulable['allDay']) ? '' : date_format($sTime, 'H:i'); 
Note: See TracChangeset for help on using the changeset viewer.