summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/forum_post_delete.php7
-rw-r--r--src/forum_post_send.php6
2 files changed, 12 insertions, 1 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
index f1fabde..177d08e 100644
--- a/src/forum_post_delete.php
+++ b/src/forum_post_delete.php
@@ -1,5 +1,11 @@
<?php
+#
+# Usage: In posting.php, following delete_post():
+#
+# require_once('/home/uckelman/site-src/bridge/src/forum_post_delete.php');
+#
+
try {
remove_post($post_id);
}
@@ -7,7 +13,6 @@ 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');
diff --git a/src/forum_post_send.php b/src/forum_post_send.php
index cd103e7..e7c573b 100644
--- a/src/forum_post_send.php
+++ b/src/forum_post_send.php
@@ -1,5 +1,11 @@
<?php
+#
+# Usage: In posting.php, following submit_post():
+#
+# require_once('/home/uckelman/site-src/bridge/src/forum_post_send.php');
+#
+
try {
send_post_to_lists($config, $user, $mode, $data, $post_data);
}