summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 . ' ' .