summaryrefslogtreecommitdiff
path: root/includes/functions_display.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 /includes/functions_display.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 'includes/functions_display.php')
-rw-r--r--includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions_display.php b/includes/functions_display.php
index bf9ed64..47ba188 100644
--- a/includes/functions_display.php
+++ b/includes/functions_display.php
@@ -93,7 +93,7 @@ function display_posts($dbc, $thread_id, $sql_result) {
$post_content = $row['post_content'];
$post_content = preg_replace_callback('/>#\d+/', function($matches) use($thread_id, $dbc) {
- return add_quote($dbc, $thread_id, $matches);
+ return create_quote($dbc, $thread_id, $matches);
}, $post_content);
// Replace YouTube URLs with embedded YouTube videos.