Changeset c5dedd7 in github


Ignore:
Timestamp:
Feb 17, 2011 4:12:22 AM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
261ea44
Parents:
31036bb
Message:
  • Add variable for 'Today' label in date_today option (#1486120)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rbfb7d6e rc5dedd7  
    22=========================== 
    33 
     4- Add variable for 'Today' label in date_today option (#1486120) 
    45- Fix dont_override setting does not override existing user preferences (#1487664) 
    56- Use only one from IMAP authentication methods to prevent login delays (1487784) 
  • config/main.inc.php.dist

    ra77cf22 rc5dedd7  
    353353 
    354354// use this format for today's date display (date or strftime format) 
     355// Note: $ character will be replaced with 'Today' label 
    355356$rcmail_config['date_today'] = 'H:i'; 
    356357 
  • program/include/main.inc

    rde3dde7 rc5dedd7  
    11191119  } 
    11201120 
    1121   return $today ? (rcube_label('today') . ' ' . $out) : $out; 
     1121  if ($today) { 
     1122    $label = rcube_label('today'); 
     1123    // replcae $ character with "Today" label (#1486120) 
     1124    if (strpos($out, '$') !== false) { 
     1125      $out = preg_replace('/\$/', $label, $out, 1); 
     1126    } 
     1127    else { 
     1128      $out = $label . ' ' . $out; 
     1129    } 
     1130  } 
     1131 
     1132  return $out; 
    11221133} 
    11231134 
Note: See TracChangeset for help on using the changeset viewer.