diff --git a/lib/ycom_log.php b/lib/ycom_log.php index df851b8a..d50b8178 100644 --- a/lib/ycom_log.php +++ b/lib/ycom_log.php @@ -95,7 +95,7 @@ public static function log($user, string $type = '', array $params = []): void $login = $user->getValue('login'); } - $log = new rex_log_file(self::logFile(), self::$maxFileSize); + $log = rex_log_file::factory(self::logFile(), self::$maxFileSize); $data = [ $ip, $id, diff --git a/plugins/auth/pages/system.log.ycom_user.php b/plugins/auth/pages/system.log.ycom_user.php index b0fee597..846c3a43 100644 --- a/plugins/auth/pages/system.log.ycom_user.php +++ b/plugins/auth/pages/system.log.ycom_user.php @@ -43,7 +43,7 @@ '; -$file = new rex_log_file($logFile); +$file = rex_log_file::factory($logFile); foreach (new LimitIterator($file, 0, 30) as $entry) { $data = $entry->getData(); $class = 'ERROR' == trim($data[0]) ? 'rex-state-error' : 'rex-mailer-log-ok';