ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 25,428
- Points
- 823
Reputation:
In
PHP:
In
PHP:
$actor is never passed and therefore always defaults to \XF::visitor() which is undesired when...
Read more
Continue reading...
XF\Logger
:PHP:
Code:
public function logModeratorAction($type, $content, $action, array $params = [], $throw = true)
{
return $this->moderatorLogger()->log($type, $content, $action, $params, $throw);
}
In
XF\ModeratorLog\Logger
:PHP:
Code:
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
Continue reading...