Changeset 2163 in subversion


Ignore:
Timestamp:
Dec 16, 2008 1:58:47 PM (4 years ago)
Author:
thomasb
Message:

Be more tolerant when splitting strings + remove col that we don't have a label for

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/config/main.inc.php.dist

    r2143 r2163  
    118118 
    119119// These cols are shown in the message list. Available cols are: 
    120 // subject, from, to, cc, replyto, date, size, encoding, flag, attachment 
     120// subject, from, to, cc, replyto, date, size, flag, attachment 
    121121$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment'); 
    122122 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r2140 r2163  
    137137      $a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject'); 
    138138  else 
    139       $a_show_cols = explode(',', strip_quotes($attrib['columns'])); 
     139      $a_show_cols = preg_split('/[\s,;]+/', strip_quotes($attrib['columns'])); 
    140140 
    141141  // store column list in a session-variable 
Note: See TracChangeset for help on using the changeset viewer.