Changeset 2126 for trunk/include/functions_mail.inc.php
- Timestamp:
- Oct 9, 2007, 1:46:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r2122 r2126 49 49 50 50 global $lang_info; 51 return '=?'. $lang_info['charset'].'?Q?'.$str.'?=';51 return '=?'.get_pwg_charset().'?Q?'.$str.'?='; 52 52 } 53 53 … … 227 227 228 228 // language files 229 include(get_language_filepath('common.lang.php', '', $language));229 load_language('common.lang', '', $language); 230 230 // No test admin because script is checked admin (user selected no) 231 231 // Translations are in admin file too 232 include(get_language_filepath('admin.lang.php', '', $language));232 load_language('admin.lang', '', $language); 233 233 trigger_action('loading_lang'); 234 @include(get_language_filepath('local.lang.php', '', $language));234 load_language('local.lang', '', $language); 235 235 236 236 $switch_lang[$language]['lang_info'] = $lang_info; … … 589 589 $content = ''; 590 590 591 if (!isset($conf_mail[$args['email_format']][ $lang_info['charset']][$args['template']][$args['theme']]))591 if (!isset($conf_mail[$args['email_format']][get_pwg_charset()][$args['template']][$args['theme']])) 592 592 { 593 593 if (!isset($mail_template)) … … 604 604 'BOUNDARY_KEY' => $conf_mail['boundary_key'], 605 605 'CONTENT_TYPE' => $args['email_format'], 606 'CONTENT_ENCODING' => $lang_info['charset'],606 'CONTENT_ENCODING' => get_pwg_charset(), 607 607 'LANG' => $lang_info['code'], 608 608 'DIR' => $lang_info['direction'], … … 651 651 // what are displayed on the header of each mail ? 652 652 $conf_mail[$args['email_format']] 653 [ $lang_info['charset']]653 [get_pwg_charset()] 654 654 [$args['template']][$args['theme']]['header'] = 655 655 $mail_template->parse('mail_header', true); … … 657 657 // what are displayed on the footer of each mail ? 658 658 $conf_mail[$args['email_format']] 659 [ $lang_info['charset']]659 [get_pwg_charset()] 660 660 [$args['template']][$args['theme']]['footer'] = 661 661 $mail_template->parse('mail_footer', true); … … 664 664 // Header 665 665 $content.= $conf_mail[$args['email_format']] 666 [ $lang_info['charset']]666 [get_pwg_charset()] 667 667 [$args['template']][$args['theme']]['header']; 668 668 … … 684 684 // Footer 685 685 $content.= $conf_mail[$args['email_format']] 686 [ $lang_info['charset']]686 [get_pwg_charset()] 687 687 [$args['template']][$args['theme']]['footer']; 688 688
Note: See TracChangeset
for help on using the changeset viewer.