diff options
Diffstat (limited to 'src/forum_post_delete.php')
-rw-r--r-- | src/forum_post_delete.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php new file mode 100644 index 0000000..068c041 --- /dev/null +++ b/src/forum_post_delete.php @@ -0,0 +1,18 @@ +<?php + +try { + remove_post($postId); +} +catch (Exception $e) { + trigger_error($e, E_USER_ERROR); +} + +# TODO: call this from handle_post_delete in posting.php +function remove_post($postId) { + require_once(__DIR__ . '/Bridge.php'); + + $bridge = new Bridge(); + $bridge->removePost($postId); +} + +?> |