Skip to content

Commit 8c781a0

Browse files
authored
Fix broken import
1 parent e2061e5 commit 8c781a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

init.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use BackendAuth;
43
use LukeTowers\EasyAudit\Classes\ActivityLogger;
54

65
if (!function_exists('audit')) {
@@ -20,7 +19,7 @@ function audit($event = '', $description = '', $subject = null, $source = null,
2019

2120
// Default the source to the currently logged in backend user (if there is one)
2221
// ensuring that impersonators are logged as the true source of the activity
23-
$user = BackendAuth::getRealUser();
22+
$user = \BackendAuth::getRealUser();
2423
if ($user) {
2524
$logger->by($user);
2625
}

0 commit comments

Comments
 (0)