Skip to content

Commit

Permalink
Factory beim Log verwendet.
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Mar 14, 2024
1 parent 2cb4f09 commit 9edc0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ycom_log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth/pages/system.log.ycom_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</thead>
<tbody>';

$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';
Expand Down

0 comments on commit 9edc0cb

Please sign in to comment.