mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
[ticket/14402] Directly pass user id and ip
PHPBB3-14402
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user