- Add variable for 'Today' label in date_today option (#1486120)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Add variable for 'Today' label in date_today option (#1486120) |
| | | - Fix dont_override setting does not override existing user preferences (#1487664) |
| | | - Use only one from IMAP authentication methods to prevent login delays (1487784) |
| | | - Replying to a sent message puts the old recipient as the new recipient (#1487074) |
| | |
| | | $rcmail_config['date_long'] = 'd.m.Y H:i'; |
| | | |
| | | // use this format for today's date display (date or strftime format) |
| | | // Note: $ character will be replaced with 'Today' label |
| | | $rcmail_config['date_today'] = 'H:i'; |
| | | |
| | | // use this format for date display without time (date or strftime format) |
| | |
| | | $out .= date($format{$i}, $timestamp); |
| | | } |
| | | |
| | | return $today ? (rcube_label('today') . ' ' . $out) : $out; |
| | | if ($today) { |
| | | $label = rcube_label('today'); |
| | | // replcae $ character with "Today" label (#1486120) |
| | | if (strpos($out, '$') !== false) { |
| | | $out = preg_replace('/\$/', $label, $out, 1); |
| | | } |
| | | else { |
| | | $out = $label . ' ' . $out; |
| | | } |
| | | } |
| | | |
| | | return $out; |
| | | } |
| | | |
| | | |