``` public function deleteThread($thread_id) {
if ($this->app->user->forum_priv <= 1)
return false;
// delete thread
$st = $this->app->db->prepare("UPDATE forum_threads
SET deleted = '1'
WHERE thread_id = :tid");
// all posts will also be marked as deleted by trigger
return $st->execute(array(':tid'=>$thread_id));
}```
in files/class.forum.php
You must be logged in to reply to this discussion.
Login
1 of 5
This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.