diff --git a/plugins/logs/controllers/logs.php b/plugins/logs/controllers/logs.php index 19df516..31d0be8 100644 --- a/plugins/logs/controllers/logs.php +++ b/plugins/logs/controllers/logs.php @@ -115,5 +115,8 @@ $username = $userObject->getUserDetails($userId)[0]['username']; // Get any new feedback messages include dirname(__FILE__, 4) . '/app/helpers/feedback.php'; +// Load plugin helpers +include PLUGIN_LOGS_PATH . 'helpers/logs_view_helper.php'; + // Display messages list include PLUGIN_LOGS_PATH . 'views/logs.php'; diff --git a/plugins/logs/helpers/logs_view_helper.php b/plugins/logs/helpers/logs_view_helper.php new file mode 100644 index 0000000..c074685 --- /dev/null +++ b/plugins/logs/helpers/logs_view_helper.php @@ -0,0 +1,15 @@ += $row['userID'] ? '' . htmlspecialchars($row['username'] . " ({$row['userID']})") . '' : 'SYSTEM' ?>