summaryrefslogtreecommitdiff
path: root/moderate.php
diff options
context:
space:
mode:
Diffstat (limited to 'moderate.php')
-rw-r--r--moderate.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/moderate.php b/moderate.php
index 3b8d05d..68bf1b9 100644
--- a/moderate.php
+++ b/moderate.php
@@ -1,5 +1,4 @@
<?php
-include_once './includes/db_inc.php';
include_once './includes/functions_thread.php';
include_once './includes/Session.php';
include_once './includes/model/User.php';
@@ -15,7 +14,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($user->level == USER_LEVEL_MODERATOR) {
if (strcasecmp($delete, "on") == 0) {
$thread = new Thread();
- $thread->get_from_database($thread_id, $dbc);
+ $thread->get_from_database($thread_id);
delete_thread($thread);
header("Location: /");