aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:06:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:06:05 +0000
commit84f795e9fbd172924280593d575bf4587c9b40e5 (patch)
tree45ac9db0e053f78f8c240370ad5dc5f8f34cb730 /phpBB/report.php
parent$auth-> to phpbb::$acl-> (diff)
downloadphpbb-84f795e9fbd172924280593d575bf4587c9b40e5.tar.gz
phpbb-84f795e9fbd172924280593d575bf4587c9b40e5.tar.bz2
phpbb-84f795e9fbd172924280593d575bf4587c9b40e5.zip
$db-> to phpbb::$db->
git-svn-id: file:///svn/phpbb/trunk@9336 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/report.php')
-rw-r--r--phpBB/report.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/phpBB/report.php b/phpBB/report.php
index c53ee8fed8..927856a451 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -48,8 +48,8 @@ $sql = 'SELECT t.*, p.*
FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . " t
WHERE p.post_id = $post_id
AND p.topic_id = t.topic_id";
-$result = $db->sql_query($sql);
-$report_data = $db->sql_fetchrow($result);
+$result = phpbb::$db->sql_query($sql);
+$report_data = phpbb::$db->sql_fetchrow($result);
phpbb::$db->sql_freeresult($result);
if (!$report_data)
@@ -63,8 +63,8 @@ $topic_id = (int) $report_data['topic_id'];
$sql = 'SELECT *
FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . $forum_id;
-$result = $db->sql_query($sql);
-$forum_data = $db->sql_fetchrow($result);
+$result = phpbb::$db->sql_query($sql);
+$forum_data = phpbb::$db->sql_fetchrow($result);
phpbb::$db->sql_freeresult($result);
if (!$forum_data)
@@ -97,9 +97,9 @@ if ($submit && $reason_id)
$sql = 'SELECT *
FROM ' . REPORTS_REASONS_TABLE . "
WHERE reason_id = $reason_id";
- $result = $db->sql_query($sql);
- $row = $db->sql_fetchrow($result);
- $db->sql_freeresult($result);
+ $result = phpbb::$db->sql_query($sql);
+ $row = phpbb::$db->sql_fetchrow($result);
+ phpbb::$db->sql_freeresult($result);
if (!$row || (!$report_text && strtolower($row['reason_title']) == 'other'))
{
@@ -116,16 +116,16 @@ if ($submit && $reason_id)
'report_text' => (string) $report_text
);
- $sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
- $db->sql_query($sql);
- $report_id = $db->sql_nextid();
+ $sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . phpbb::$db->sql_build_array('INSERT', $sql_ary);
+ phpbb::$db->sql_query($sql);
+ $report_id = phpbb::$db->sql_nextid();
if (!$report_data['post_reported'])
{
$sql = 'UPDATE ' . POSTS_TABLE . '
SET post_reported = 1
WHERE post_id = ' . $post_id;
- $db->sql_query($sql);
+ phpbb::$db->sql_query($sql);
}
if (!$report_data['topic_reported'])
@@ -134,7 +134,7 @@ if ($submit && $reason_id)
SET topic_reported = 1
WHERE topic_id = ' . $report_data['topic_id'] . '
OR topic_moved_id = ' . $report_data['topic_id'];
- $db->sql_query($sql);
+ phpbb::$db->sql_query($sql);
}
meta_refresh(3, $redirect_url);