Changeset 2272


Ignore:
Timestamp:
03/16/10 18:09:02 (14 years ago)
Author:
niltonneto
Message:

Ticket #988 - Corrigido problema ao carregar lang da classe PHPMailer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2247 r2272  
    18671867                include_once("class.phpmailer.php"); 
    18681868                $mail = new PHPMailer(); 
     1869                // Set lang for PHPMailer using user prefs. 
     1870                list($prefix,$userlang) = explode('-',$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang']); 
     1871                $mail->SetLanguage($userlang,dirname( __FILE__ )."/../setup/"); 
    18691872                include_once("class.db_functions.inc.php"); 
    18701873                $db = new db_functions(); 
     
    25602563                include_once("class.phpmailer.php"); 
    25612564                $mail = new PHPMailer(); 
     2565                // Set lang for PHPMailer using user prefs. 
     2566                list($prefix,$userlang) = explode('-',$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang']);                 
     2567                $mail->SetLanguage($userlang,dirname( __FILE__ )."/../setup/");          
    25622568                include_once("class.db_functions.inc.php"); 
    25632569                $toaddress = $params['input_to']; 
     
    30703076                require_once("class.phpmailer.php"); 
    30713077                $mail = new PHPMailer(); 
     3078                // Set lang for PHPMailer using user prefs. 
     3079                list($prefix,$userlang) = explode('-',$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang']);                 
     3080                $mail->SetLanguage($userlang,dirname( __FILE__ )."/../setup/"); 
    30723081 
    30733082                $toaddress = $params['notificationto']; 
Note: See TracChangeset for help on using the changeset viewer.