summaryrefslogtreecommitdiff
path: root/create_thread.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-24 19:40:50 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-24 19:40:50 -0600
commit2098bf444afadcf0363d89b4cc1dca5d2213d754 (patch)
treeda93b29e22170d7be7c9ed215fde5238e9d76178 /create_thread.php
parentaae25cd709d486f7ee9513753d40eb5cc239c42d (diff)
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.
Diffstat (limited to 'create_thread.php')
-rw-r--r--create_thread.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/create_thread.php b/create_thread.php
index 534b0ab..2ed323d 100644
--- a/create_thread.php
+++ b/create_thread.php
@@ -20,10 +20,10 @@ if (!Session::get()->is_signed_in()) {
<input type="text" name="thread_subject"><br>
<label for="thread_cat">Category: </label><br>
<?php
- include_once './includes/db_inc.php';
+ include_once './includes/functions_category.php';
include_once './includes/model/Category.php';
- $categories = get_all_categories($dbc);
+ $categories = get_all_categories();
if (count($categories) == 0) {
echo 'There are no categories to post to!';