X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/523265c78f8f637ad002c997d22990a532bb9f08..b767acc63bfe4ecd297d6961d8187532f0759d56:/cx/cx.php?ds=inline diff --git a/cx/cx.php b/cx/cx.php index 35b2722..74bd42e 100644 --- a/cx/cx.php +++ b/cx/cx.php @@ -176,7 +176,7 @@ function cx_route($path) { $page_id = cx_posts_find_page_id($slug); if ($page_id) { $template = 'post'; - $template_variables['post_id'] = cx_posts_find_page_id($slug); + $template_variables['post_id'] = $page_id; } } @@ -187,7 +187,7 @@ function cx_route($path) { $post_id = cx_posts_find_article_id($slug); if ($post_id) { $template = 'post'; - $template_variables['post_id'] = cx_posts_find_article_id($slug); + $template_variables['post_id'] = $post_id; } } }