Ignore:
Timestamp:
Jul 21, 2009 12:40:27 PM (4 years ago)
Author:
thomasb
Message:

Pipe date string through write_log plugin hook (#1485979)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r2746 r2780  
    996996    $CONFIG['log_date_format'] = 'd-M-Y H:i:s O'; 
    997997   
     998  $date = date($CONFIG['log_date_format']); 
     999   
    9981000  // trigger logging hook 
    9991001  if (is_object($RCMAIL) && is_object($RCMAIL->plugins)) { 
    1000     $log = $RCMAIL->plugins->exec_hook('write_log', array('name' => $name, 'line' => $line)); 
     1002    $log = $RCMAIL->plugins->exec_hook('write_log', array('name' => $name, 'date' => $date, 'line' => $line)); 
    10011003    $name = $log['name']; 
    10021004    $line = $log['line']; 
     1005    $date = $log['date']; 
    10031006    if ($log['abort']) 
    10041007      return; 
    10051008  } 
    10061009  
    1007   $log_entry = sprintf("[%s]: %s\n", date($CONFIG['log_date_format']), $line); 
     1010  $log_entry = sprintf("[%s]: %s\n", $date, $line); 
    10081011 
    10091012  if ($CONFIG['log_driver'] == 'syslog') { 
Note: See TracChangeset for help on using the changeset viewer.