summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
blob: 068c041bf55d4701aa096dacd8c43f3ce26c07a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}

?>