From 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sat, 5 Jun 2021 11:18:10 -0600 Subject: Move object related functions into their classes. Some of the pages are still broken from this commit, but I plan to either rewrite or ignore them. --- create_thread.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'create_thread.php') diff --git a/create_thread.php b/create_thread.php index 976bd9f..3d1c530 100644 --- a/create_thread.php +++ b/create_thread.php @@ -21,10 +21,9 @@ if (!Session::get()->is_signed_in()) {

is_signed_in()) { '; trigger_error($errstr); } else { - $thread_id = create_thread($thread_subject, $thread_cat); - create_post($post_content, $thread_id, $thread_cat); + $thread_id = Thread::create($thread_subject, $thread_cat); + Post::create($post_content, $thread_id, $thread_cat); header("Location: viewthread.php?id=" . $thread_id); } -- cgit v1.2.3