]> git.bts.cx Git - cx.git/blobdiff - cx/cx.php
Small fixes
[cx.git] / cx / cx.php
index 35b2722d4c400e145697a0ff683ed5e4830f02c4..74bd42edd64130c4bb0357b770ea04a0658bcd3d 100644 (file)
--- 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;
                        }
                }
        }