summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
blob: f1fabde69c3810066102021243a7418bf7ad067c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

try {
  remove_post($post_id);
}
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);
}

?>