summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-11-22 22:12:50 +0000
committeruckelman <uckelman@nomic.net>2010-11-22 22:12:50 +0000
commitf74323a49897c9e646d586b68ec80cc0f3773d02 (patch)
treeac9d3e521ac4f48caf6d132821395672f532a90c /src/forum_post_delete.php
parent4b810d86950d0125d5f16b80defd505f540a8bad (diff)
Renamed $db so as not to clobber phpbb's $db global.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7477 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/forum_post_delete.php')
-rw-r--r--src/forum_post_delete.php4
1 files changed, 2 insertions, 2 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');