gigipmc
Active member
- Affected version
- 2.2, 2.3
In
In
$actor is never passed and therefore always defaults to \XF::visitor() which is undesired when we need a custom actor..
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 we need a custom actor..