From 08664e98349fdf2a19d1f80865c7344a503d8956 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 16 Jan 2025 10:40:41 +0900 Subject: [PATCH] Update log writing for login info Fix the deprecated message in the Admin/Backend one with a full sample Update the admin_header include sample page with the corret writeLog call --- www/includes/admin_header.php | 2 +- www/lib/CoreLibs/Admin/Backend.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/includes/admin_header.php b/www/includes/admin_header.php index 9def1ebe..b83f36d5 100644 --- a/www/includes/admin_header.php +++ b/www/includes/admin_header.php @@ -116,7 +116,7 @@ $data = [ // log action // no log if login if (!$login->loginActionRun()) { - $login->writeLog('Submit', $data, $cms->adbGetActionSet(), 'BINARY'); + $login->writeLog('Submit', $data, action_set:$cms->adbGetActionSet(), write_type:'BINARY'); } //------------------------------ logging end diff --git a/www/lib/CoreLibs/Admin/Backend.php b/www/lib/CoreLibs/Admin/Backend.php index 04e084ff..cd64e2e1 100644 --- a/www/lib/CoreLibs/Admin/Backend.php +++ b/www/lib/CoreLibs/Admin/Backend.php @@ -289,7 +289,7 @@ class Backend * JSON, STRING/SERIEAL, BINARY/BZIP or ZLIB * @param string|null $db_schema [default=null] override target schema * @return void - * @deprecated Use $login->writeLog() and set action_set from ->adbGetActionSet() + * @deprecated Use $login->writeLog($event, $data, action_set:$cms->adbGetActionSet(), write_type:$write_type) */ public function adbEditLog( string $event = '',