From 2098bf444afadcf0363d89b4cc1dca5d2213d754 Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sat, 24 Apr 2021 19:40:50 -0600 Subject: Remove all uses of db_inc.php This method of importing the database login every time wasn't very good. Now everything uses the new Database singleton class. --- search.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index 0732129..e5ef9db 100644 --- a/search.php +++ b/search.php @@ -27,7 +27,8 @@
'; echo '' . $thread->subject . ''; @@ -45,11 +46,11 @@ if (!isset($_GET['type'])) { } break; case 'post': - $posts = get_all_posts($dbc); + $posts = get_all_posts(); foreach ($posts as $post) { echo '

From ' . $post->thread->subject . '

'; - $post->display_content($dbc); + echo get_post_content($post); echo '
'; } break; -- cgit v1.2.3