diff --git a/src/Helpers/LogHelper.php b/src/Helpers/LogHelper.php index f573358d..6f434744 100644 --- a/src/Helpers/LogHelper.php +++ b/src/Helpers/LogHelper.php @@ -70,18 +70,6 @@ class LogEvent $this->timestamp = time(); $this->text = $text; $this->ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0'; - - //todo: deprecated - if (!isset($tokens['anon'])) - $tokens['anon'] = UserModel::getAnonymousName(); - if (!isset($tokens['user'])) - { - if (Auth::isLoggedIn()) - $tokens['user'] = TextHelper::reprUser(Auth::getCurrentUser()->name); - else - $tokens['user'] = $tokens['anon']; - } - $this->tokens = $tokens; }