Removed obsolete code
This commit is contained in:
parent
d3beb8bc53
commit
cde25c8a64
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue