Ignore:
Timestamp:
May 29, 2019 12:58:40 AM (5 years ago)
Author:
anonymous
Message:

Fix regression (using -> notation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/App.inc.php

    r687 r688  
    110110    // Store this event under a unique key, counting each time it occurs so that it only gets reported a limited number of times.
    111111    $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])) {
    113113        $previous_events[$msg_id]++;
    114114        if ($previous_events[$msg_id] == 2) {
     
    170170        $subject = sprintf('[%s %s]', $hostname, $priority);
    171171        $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;
    173173        mb_send_mail($CFG->log_to_sms, $subject, $sms_msg, $headers);
    174174    }
Note: See TracChangeset for help on using the changeset viewer.