X-Git-Url: https://git.bts.cx/cx.git/blobdiff_plain/4083179b42caa6de33cd4cec006d7ffe46e48a60..ef10a64a4f43bf4ba5e660c0f56d31e4602998c3:/cx/lib/posts.php?ds=sidebyside diff --git a/cx/lib/posts.php b/cx/lib/posts.php index 6437433..8ce6e6b 100644 --- a/cx/lib/posts.php +++ b/cx/lib/posts.php @@ -19,6 +19,7 @@ class Post { public $title; public $slug; public $date; + public $is_page; public $is_draft; public $data; public $html_content; @@ -29,6 +30,7 @@ class Post { $this->title = $dict['post_title']; $this->slug = $dict['post_slug']; $this->date = $dict['post_date']; + $this->is_page = $dict['post_is_page']; $this->is_draft = $dict['post_is_draft']; $this->data = $dict['post_data']; $this->html_content = cx_markdown_generate_html($this->data); @@ -244,7 +246,7 @@ function cx_pages_get() { FROM posts WHERE post_is_page == TRUE AND post_is_draft == FALSE - ORDER BY post_creation_time DESC;'; + ORDER BY post_creation_time ASC;'; foreach (cx_db_query($sql) as $post) { $p = new Post($post);