mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14402] Directly pass user id and ip
PHPBB3-14402
This commit is contained in:
parent
3a555d94af
commit
6710ea3947
1 changed files with 1 additions and 3 deletions
|
@ -98,9 +98,7 @@ class tidy_plupload extends \phpbb\cron\task\base
|
||||||
}
|
}
|
||||||
catch (\UnexpectedValueException $e)
|
catch (\UnexpectedValueException $e)
|
||||||
{
|
{
|
||||||
$user_id = (empty($this->user->data)) ? ANONYMOUS : $this->user->data['user_id'];
|
$this->log->add('critical', $this->user->data['user_id'], $this->user->ip, 'LOG_PLUPLOAD_TIDY_FAILED', false, array(
|
||||||
$user_ip = (empty($this->user->ip)) ? '' : $this->user->ip;
|
|
||||||
$this->log->add('critical', $user_id, $user_ip, 'LOG_PLUPLOAD_TIDY_FAILED', false, array(
|
|
||||||
$this->plupload_upload_path,
|
$this->plupload_upload_path,
|
||||||
$e->getMessage(),
|
$e->getMessage(),
|
||||||
$e->getTraceAsString()
|
$e->getTraceAsString()
|
||||||
|
|
Loading…
Add table
Reference in a new issue