diff --git a/functions/article_functions.php b/functions/article_functions.php index 5667b82..3de1238 100644 --- a/functions/article_functions.php +++ b/functions/article_functions.php @@ -50,7 +50,7 @@ function article_page_from_markdown($article_id) $query = 'SELECT user_id, username, profile_picture FROM user WHERE user_id = ' . $article['author_id'] . ';'; $author = query_one_result($query); - $markdown = read_file_one_string($_ENV['ARTICLES_PATH'] . $article_id . '/article.md'); + $markdown = read_file_one_string($_ENV['ARTICLES_FQ_PATH'] . $article_id . '/article.md'); $parsedown = new Parsedown(); @@ -63,7 +63,7 @@ function article_page_from_markdown($article_id)

Published on ' . $article['published_at'] . '

- +
@@ -129,7 +129,7 @@ function create_article($author_id, $title, $excerpt, $tags, $markdown_file_cont $stmt = 'INSERT INTO article (author_id, title, excerpt, published_at) VALUES (' . $author_id . ', "' . $title . '", "' . $excerpt . '", CURRENT_TIMESTAMP);'; $id = exec_statement($stmt, 0); - $path = $_ENV['ARTICLES_PATH'] . $id . '/'; + $path = $_ENV['ARTICLES_PQ_PATH'] . $id . '/'; mkdir($path); $fs = fopen($path . 'article.md', 'a'); fwrite($fs, $markdown_file_contents);