Removed obsolete code

This commit is contained in:
Marcin Kurczewski 2014-05-04 19:21:16 +02:00
parent d3beb8bc53
commit cde25c8a64

View file

@ -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;
}