summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-11-22 22:02:33 +0000
committeruckelman <uckelman@nomic.net>2010-11-22 22:02:33 +0000
commited6daa57194c94e7fd0f311dd190168314350d23 (patch)
treea9600fcde8d639d9c60096ec12e8ee0c9eca07ad
parentc1b8e6bda64c4a8f3b9875cf7e3387510b7aadad (diff)
Removed unused globals.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7474 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/PhpBB3Impl.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/PhpBB3Impl.php b/src/PhpBB3Impl.php
index 9986a6a..0356303 100644
--- a/src/PhpBB3Impl.php
+++ b/src/PhpBB3Impl.php
@@ -75,8 +75,6 @@ class PhpBB3Impl implements PhpBB3 {
public function getTopicAndForumIds($post_id) {
throw_if_null($post_id);
- global $db;
-
$sql = 'SELECT topic_id, forum_id FROM ' . POSTS_TABLE . ' ' .
'WHERE post_id = ' . $post_id;
@@ -113,8 +111,6 @@ class PhpBB3Impl implements PhpBB3 {
public function topicStatus($topicId) {
throw_if_null($topicId);
- global $db;
-
$sql = 'SELECT topic_status FROM ' . TOPICS_TABLE . ' ' .
'WHERE topic_id = ' . $topicId;
@@ -125,8 +121,6 @@ class PhpBB3Impl implements PhpBB3 {
public function getPostTime($postId) {
throw_if_null($postId);
- global $db;
-
$sql = 'SELECT post_time FROM ' . POSTS_TABLE . ' ' .
'WHERE post_id = ' . $postId;
@@ -137,8 +131,6 @@ class PhpBB3Impl implements PhpBB3 {
public function getAttachmentData($attachId) {
throw_if_null($attachId);
- global $db;
-
$sql = 'SELECT physical_filename, real_filename, ' .
'attach_comment, mimetype ' .
'FROM ' . ATTACHMENTS_TABLE . ' ' .