Ignore:
Timestamp:
Nov 9, 2011 5:03:54 AM (19 months ago)
Author:
alec
Message:
  • Apply fixes from trunk up to r5401
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.7/program/steps/mail/compose.inc

    r5297 r5402  
    66 |                                                                       | 
    77 | This file is part of the Roundcube Webmail client                     | 
    8  | Copyright (C) 2005-2009, The Roundcube Dev Team                       | 
     8 | Copyright (C) 2005-2011, The Roundcube Dev Team                       | 
    99 | Licensed under the GNU GPL                                            | 
    1010 |                                                                       | 
     
    123123// set current mailbox in client environment 
    124124$OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); 
    125 $OUTPUT->set_env('sig_above', $CONFIG['sig_above']); 
    126 $OUTPUT->set_env('top_posting', $CONFIG['top_posting']); 
     125$OUTPUT->set_env('sig_above', $RCMAIL->config->get('sig_above', false)); 
     126$OUTPUT->set_env('top_posting', $RCMAIL->config->get('top_posting', false)); 
     127$OUTPUT->set_env('recipients_separator', trim($RCMAIL->config->get('recipients_separator', ','))); 
    127128 
    128129// get reference message and set compose mode 
     
    325326$a_recipients = array(); 
    326327$parts        = array('to', 'cc', 'bcc', 'replyto', 'followupto'); 
     328$separator    = trim($RCMAIL->config->get('recipients_separator', ',')) . ' '; 
    327329 
    328330foreach ($parts as $header) { 
     
    368370        $fvalue .= $v; 
    369371      if ($v = $MESSAGE->headers->cc) 
    370         $fvalue .= (!empty($fvalue) ? ', ' : '') . $v; 
     372        $fvalue .= (!empty($fvalue) ? $separator : '') . $v; 
    371373    } 
    372374  } 
     
    411413    } 
    412414 
    413     $fvalue = implode(', ', $fvalue); 
     415    $fvalue = implode($separator, $fvalue); 
    414416  } 
    415417 
Note: See TracChangeset for help on using the changeset viewer.