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.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
index f80b1ad..be3fa0f 100644
--- a/src/forum_post_delete.php
+++ b/src/forum_post_delete.php
@@ -38,9 +38,12 @@ function remove_post($postId) {
require_once('Log.php');
$logger = &Log::singleton('file', '/var/log/listbridge', 'one');
- require_once(__DIR__ . '/Bridge.php');
+ require_once(__DIR__ . '/BridgeConf.php')
+ require_once(__DIR__ . '/BridgeImpl.php');
+
+ $db = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
+ $bridge = new BridgeImpl($db);
- $bridge = new Bridge();
if ($bridge->removePost($postId)) {
$logger->info($postId . ' deleted');
}