$actor not passed from logModeratorAction() to moderatorLogger()->log()
- Автор xenforo2
- RSS Feed XenForo
- 0 Ответы
In
PHP:
In
PHP:
$actor is never passed and therefore always defaults to \XF::visitor() which is undesired when...
Read more
Читать далее...
XF\Logger
:PHP:
Код:
public function logModeratorAction($type, $content, $action, array $params = [], $throw = true)
{
return $this->moderatorLogger()->log($type, $content, $action, $params, $throw);
}
In
XF\ModeratorLog\Logger
:PHP:
Код:
public function log($type, $content, $action, array $params = [], $throw = true, ?User $actor = null)
{
.... $actor = $actor ?: \XF::visitor();
$actor is never passed and therefore always defaults to \XF::visitor() which is undesired when...
Read more
Читать далее...