summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/forum_post_delete.php')
-rw-r--r--src/forum_post_delete.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
index 177d08e..56fbfdc 100644
--- a/src/forum_post_delete.php
+++ b/src/forum_post_delete.php
@@ -14,10 +14,18 @@ catch (Exception $e) {
}
function remove_post($postId) {
+ require_once('Log.php');
+ $logger = &Log::singleton('file', '/var/log/listbridge', 'one');
+
require_once(__DIR__ . '/Bridge.php');
$bridge = new Bridge();
- $bridge->removePost($postId);
+ if ($bridge->removePost($postId)) {
+ $logger->info($postId . ' deleted');
+ }
+ else {
+ $logger->info($postId . ' not found, not deleted');
+ }
}
?>