alecpl
2011-02-20 f572575652b33025a17264dce9abe9a9219dfbc1
program/include/main.inc
@@ -1118,7 +1118,18 @@
      $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;
}
@@ -1737,7 +1748,7 @@
{
  global $RCMAIL, $CONFIG;
  $hook = $RCMAIL->plugins->exec_hook('hmtl_editor', array('mode' => $mode));
  $hook = $RCMAIL->plugins->exec_hook('html_editor', array('mode' => $mode));
  if ($hook['abort'])
    return;