Changeset 688 for branches/1.1dev
- Timestamp:
- May 29, 2019 12:58:40 AM (5 years ago)
- Location:
- branches/1.1dev/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/App.inc.php
r687 r688 110 110 // Store this event under a unique key, counting each time it occurs so that it only gets reported a limited number of times. 111 111 $msg_id = md5($message . $priority . $file . $line); 112 if ($ this->getParam('log_ignore_repeated_events')&& isset($previous_events[$msg_id])) {112 if ($CFG->log_ignore_repeated_events && isset($previous_events[$msg_id])) { 113 113 $previous_events[$msg_id]++; 114 114 if ($previous_events[$msg_id] == 2) { … … 170 170 $subject = sprintf('[%s %s]', $hostname, $priority); 171 171 $sms_msg = sprintf('%s [%s:%s]', mb_substr($event_short['message'], 0, 64), basename($file), $line); 172 $headers = 'From: ' . $ this->getParam('site_email');172 $headers = 'From: ' . $CFG->site_email; 173 173 mb_send_mail($CFG->log_to_sms, $subject, $sms_msg, $headers); 174 174 } -
branches/1.1dev/lib/Nav.inc.php
r680 r688 102 102 103 103 if (!isset($this->pages[sizeof($this->pages)-1]['features']) || !isset($this->pages[$page_id]['features'])) { 104 $app->logMsg(sprintf('Page not available to set feature: page_id = %s', $page_id), LOG_ERR, __FILE__, __LINE__);104 logMsg(sprintf('Page not available to set feature: page_id = %s', $page_id), LOG_ERR, __FILE__, __LINE__); 105 105 return false; 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.