Skip to content

Commit

Permalink
Fix wrong log level constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Jako authored Apr 30, 2024
1 parent ea9b7e7 commit 8a0bb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/extending-modx/plugins/system-events/ondocformsave.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a0bb2d

Please sign in to comment.