Changeset 357 for trunk/lib/App.inc.php
- Timestamp:
- Jun 14, 2009 10:36:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r348 r357 107 107 108 108 // Don't email or sms duplicate messages that happen more often than this value (in seconds). 109 'log_multiple_timeout' => 6 0,109 'log_multiple_timeout' => 61, 110 110 111 111 // Logging priority can be any of the following, or false to deactivate: … … 556 556 557 557 // Create tmp files so that we don't email and sms redundantly. 558 $site_hash = md5( SITE_BASE);558 $site_hash = md5($_SERVER['SCRIPT_NAME']); 559 559 $temp_dir = $this->getParam('tmp_dir') . "/codebase_msgs_$site_hash/"; 560 560 $temp_file = $temp_dir . $msg_id; … … 567 567 // Has this message been sent more recently than the timeout? 568 568 if ((time() - $msg_last_sent) < $this->getParam('log_multiple_timeout')) { 569 // This message was alrea y sent recently569 // This message was already sent recently. 570 570 $send_notifications = false; 571 571 } else { 572 // Timeout has expired go ahead and send notifications again 572 // Timeout has expired go ahead and send notifications again. 573 573 unlink($temp_file); 574 574 } … … 597 597 // NOTIFY SOMEONE 598 598 if ($send_notifications) { 599 600 599 // EMAIL ACTION 601 600 if ($this->getParam('log_email_priority') && $priority <= $this->getParam('log_email_priority')) {
Note: See TracChangeset
for help on using the changeset viewer.