From 9edc0cb16c7b97eea6a7dd1bc31bca41a473ee03 Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Thu, 14 Mar 2024 11:42:12 +0100 Subject: [PATCH] Factory beim Log verwendet. --- lib/ycom_log.php | 2 +- plugins/auth/pages/system.log.ycom_user.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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';