From 8a0bb2d6bb964f90453e2f8678534cadb901961a Mon Sep 17 00:00:00 2001 From: Thomas Jakobi Date: Tue, 30 Apr 2024 08:58:21 +0200 Subject: [PATCH] Fix wrong log level constant --- en/extending-modx/plugins/system-events/ondocformsave.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/extending-modx/plugins/system-events/ondocformsave.md b/en/extending-modx/plugins/system-events/ondocformsave.md index 03512cd6d..ad74145ea 100644 --- a/en/extending-modx/plugins/system-events/ondocformsave.md +++ b/en/extending-modx/plugins/system-events/ondocformsave.md @@ -30,7 +30,7 @@ To do something with the page ID (e.g. to update a related custom table), you ca ``` php // Log all available properties of the $resource -$modx->log(MODX_LOG_LEVEL_ERROR, print_r($resource->toArray(),true) ); +$modx->log(modX::LOG_LEVEL_ERROR, print_r($resource->toArray(),true) ); // Get the page id $page_id = $resource->get('id'); // or simply