alecpl
2011-09-16 4daaf297478aa66eb359e2989d729d98c3f45793
program/include/main.inc
@@ -97,9 +97,9 @@
 *
 * @see rcmail::text_exists()
 */
function rcube_label_exists($name, $domain=null)
function rcube_label_exists($name, $domain=null, &$ref_domain = null)
{
  return rcmail::get_instance()->text_exists($name, $domain);
  return rcmail::get_instance()->text_exists($name, $domain, $ref_domain);
}
@@ -1055,13 +1055,13 @@
  // define date format depending on current time
  if (!$format) {
    if ($CONFIG['prettydate'] && $timestamp > $today_limit && $timestamp < $now) {
      $format = $CONFIG['date_today'] ? $CONFIG['date_today'] : 'H:i';
      $format = $RCMAIL->config->get('date_today', $RCMAIL->config->get('time_format', 'H:i'));
      $today  = true;
    }
    else if ($CONFIG['prettydate'] && $timestamp > $week_limit && $timestamp < $now)
      $format = $CONFIG['date_short'] ? $CONFIG['date_short'] : 'D H:i';
      $format = $RCMAIL->config->get('date_short', 'D H:i');
    else
      $format = $CONFIG['date_long'] ? $CONFIG['date_long'] : 'd.m.Y H:i';
      $format = $RCMAIL->config->get('date_long', 'Y-m-d H:i');
  }
  // strftime() format