Ignore:
Timestamp:
Dec 19, 2006, 11:05:01 PM (17 years ago)
Author:
rub
Message:

Apply Nicco's style footer to HTML mail.
Add 2 news functions to indicate to build URL with full path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r1645 r1676  
    122122function pwg_mail($to, $from = '', $subject = 'PhpWebGallery', $infos = '', $format_infos = 'text/plain', $email_format = null)
    123123{
    124   global $conf, $conf_mail, $lang_info, $user;
     124  global $conf, $conf_mail, $lang_info, $user, $page;
    125125
    126126  $cvt7b_subject = str_translate_to_ascii7bits($subject);
     
    140140    // Todo find function to convert html text to plain text
    141141    return false;
     142  }
     143
     144  // Compute root_path in order have complete path
     145  if ($email_format == 'text/html')
     146  {
     147    set_make_full_url();
    142148  }
    143149
     
    180186
    181187          'CONTENT_ENCODING' => $lang_info['charset'],
    182           'LANG'=>$lang_info['code'],
    183           'DIR'=>$lang_info['direction']
    184 
     188          'LANG' => $lang_info['code'],
     189          'DIR' => $lang_info['direction']
    185190          ));
    186191
     
    221226          'VERSION' => $conf['show_version'] ? PHPWG_VERSION : '',
    222227
    223           'L_TITLE_MAIL' => urlencode(l10n('title_send_mail')),
     228          'TITLE_MAIL' => urlencode(l10n('title_send_mail')),
    224229          'MAIL' => get_webmaster_mail_address()
    225230          ));
     
    235240
    236241  $content.= $conf_mail[$email_format][$lang_info['charset']]['footer'];
     242 
     243   // Undo Compute root_path in order have complete path
     244  if ($email_format == 'text/html')
     245  {
     246    unset_make_full_url();
     247  }
    237248
    238249  if ($conf_mail['mail_options'])
Note: See TracChangeset for help on using the changeset viewer.