Changeset 688 for branches/1.1dev/lib


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

Fix regression (using -> notation)

Location:
branches/1.1dev/lib
Files:
2 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    }
  • branches/1.1dev/lib/Nav.inc.php

    r680 r688  
    102102
    103103        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__);
    105105            return false;
    106106        }
Note: See TracChangeset for help on using the changeset viewer.