From c7aa90c6b28e2268d612c49a98469506d3529fb6 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 22 Jan 2019 15:02:53 +0100 Subject: [PATCH] Added macro for defining audit log constants. --- src/audit_log.php | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/audit_log.php b/src/audit_log.php index 664aab00..d7141702 100644 --- a/src/audit_log.php +++ b/src/audit_log.php @@ -1,24 +1,24 @@ 'Edited news category #%d.', ]); +function audit_log_define(string $name): void +{ + define("MSZ_AUDIT_{$name}", $name); +} + function audit_log( string $action, int $userId = 0,