]> git.bts.cx Git - cx.git/blobdiff - cx/lib/posts.php
Go back to the edit page after editing a post/page
[cx.git] / cx / lib / posts.php
index 3293ace514e3282867f390641c6cdd87053e9b3c..a7ebfa459bb6c5a67feb98fa14d7b1dd71ce5055 100644 (file)
@@ -99,7 +99,8 @@ function cx_posts_add_post($site_id, $title, $slug, $date, $page, $draft, $nav_i
                        post_data,
                        post_data_version)
                VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);';
-       cx_db_exec($sql, $site_id, $creation_time, $update_time, $slug, $date, $page, $draft, $nav_index, $title, $data, 1);
+       $id = cx_db_exec($sql, $site_id, $creation_time, $update_time, $slug, $date, $page, $draft, $nav_index, $title, $data, 1);
+       return $id;
 }
 
 function cx_posts_update_post($post_id, $title, $slug, $date, $page, $draft, $nav_index, $data) {