Changeset 1081 in ExiteCMS for trunk/includes/sendmail_include.php


Ignore:
Timestamp:
11/07/07 16:57:20 (5 years ago)
Author:
root
Message:

removed empty locale index files
moved some locale settings (charset, country, dateinfo) from $locale to $settings
updated the modules and templates that used these variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/sendmail_include.php

    r863 r1081  
    1919     
    2020    $mail = new PHPMailer(); 
    21     if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$locale['phpmailer'].".php")) { 
    22         $mail->SetLanguage($locale['phpmailer'], PATH_INCLUDES."language/"); 
     21    if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings['locale_code'].".php")) { 
     22        $mail->SetLanguage($settings['locale_code'], PATH_INCLUDES."language/"); 
    2323    } else { 
    2424        $mail->SetLanguage("en", PATH_INCLUDES."language/"); 
     
    3636    } 
    3737     
    38     $mail->CharSet = $locale['charset']; 
     38    $mail->CharSet = $settings['charset']; 
    3939    $mail->From = $fromemail; 
    4040    $mail->FromName = $fromname; 
Note: See TracChangeset for help on using the changeset viewer.