From 2a81d9d0e93ddf3225ccf3e6884c797135527bc6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 3 Dec 2022 16:45:34 +0100 Subject: [PATCH] fix tables names --- _public.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_public.php b/_public.php index 0d7ac86..f44f503 100644 --- a/_public.php +++ b/_public.php @@ -60,8 +60,8 @@ class publicBehaviorPostExpired # Get expired dates and post_id $posts = dcCore::app()->con->select( 'SELECT P.post_id, P.post_tz, META.meta_id ' . - 'FROM ' . dcCore::app()->prefix . 'post P ' . - 'INNER JOIN ' . dcCore::app()->prefix . 'meta META ' . + 'FROM ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P ' . + 'INNER JOIN ' . dcCore::app()->prefix . dcMeta::META_TABLE_NAME . ' META ' . 'ON META.post_id = P.post_id ' . "WHERE blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . // Removed for quick compatibility with some plugins @@ -78,7 +78,7 @@ class publicBehaviorPostExpired $now = dt::toUTC(time()); # Prepared post cursor - $post_cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . 'post'); + $post_cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcBlog::POST_TABLE_NAME); # Loop through marked posts $updated = false;