Rename events to insert local post

This commit is contained in:
Art4 2025-03-14 15:45:36 +00:00
parent 9aeb68231d
commit 9c6f5f222d
8 changed files with 23 additions and 23 deletions

View file

@ -46,7 +46,7 @@ function item_post()
$eventDispatcher = DI::eventDispatcher();
$_REQUEST = $eventDispatcher->dispatch(
new ArrayFilterEvent(ArrayFilterEvent::POST_LOCAL_START, $_REQUEST)
new ArrayFilterEvent(ArrayFilterEvent::INSERT_POST_LOCAL_START, $_REQUEST)
)->getArray();
$return_path = $_REQUEST['return'] ?? '';
@ -282,7 +282,7 @@ function item_process(array $post, array $request, bool $preview, string $return
$eventDispatcher = DI::eventDispatcher();
$post = $eventDispatcher->dispatch(
new ArrayFilterEvent(ArrayFilterEvent::POST_LOCAL, $post)
new ArrayFilterEvent(ArrayFilterEvent::INSERT_POST_LOCAL, $post)
)->getArray();
unset($post['edit']);