summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/forum_post_delete.php4
-rw-r--r--src/forum_post_send.php4
-rw-r--r--src/list_post_receive.php7
3 files changed, 8 insertions, 7 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
index be3fa0f..ae01850 100644
--- a/src/forum_post_delete.php
+++ b/src/forum_post_delete.php
@@ -41,8 +41,8 @@ function remove_post($postId) {
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);
+ $bdb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
+ $bridge = new BridgeImpl($bdb);
if ($bridge->removePost($postId)) {
$logger->info($postId . ' deleted');
diff --git a/src/forum_post_send.php b/src/forum_post_send.php
index 723ed66..08a713a 100644
--- a/src/forum_post_send.php
+++ b/src/forum_post_send.php
@@ -52,8 +52,8 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) {
require_once(__DIR__ . '/PhpBB3Impl.php');
require_once(__DIR__ . '/PhpBB3ToMailman.php');
- $db = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
- $bridge = new BridgeImpl($db);
+ $bdb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
+ $bridge = new BridgeImpl($bdb);
$phpbb = new PhpBB3Impl();
diff --git a/src/list_post_receive.php b/src/list_post_receive.php
index 2c5ddc2..a8a00fe 100644
--- a/src/list_post_receive.php
+++ b/src/list_post_receive.php
@@ -30,14 +30,15 @@ try {
require_once(__DIR__ . '/BridgeConf.php');
require_once(__DIR__ . '/BridgeImpl.php');
+ require_once(__DIR__ . '/MailmanMessage.php');
+ require_once(__DIR__ . '/MailmanToPhpBB3.php');
require_once(__DIR__ . '/PhpBB3Conf.php');
require_once(__DIR__ . '/PhpBB3Impl.php');
- require_once(__DIR__ . '/MailmanToPhpBB3.php');
$msg = new MailmanMessage($_POST['message']);
- $db = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
- $bridge = new BridgeImpl($db);
+ $bdb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
+ $bridge = new BridgeImpl($bdb);
$phpbb = new PhpBB3Impl();