From ed6daa57194c94e7fd0f311dd190168314350d23 Mon Sep 17 00:00:00 2001 From: uckelman Date: Mon, 22 Nov 2010 22:02:33 +0000 Subject: Removed unused globals. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7474 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3Impl.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/PhpBB3Impl.php') 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 . ' ' . -- cgit v1.2.3