diff options
Diffstat (limited to 'lib/blog/edit.php')
-rw-r--r-- | lib/blog/edit.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/blog/edit.php b/lib/blog/edit.php index 854c94f..d76781c 100644 --- a/lib/blog/edit.php +++ b/lib/blog/edit.php @@ -39,11 +39,7 @@ if (isset($_POST['title']) && isset($_POST['tags']) && isset($_POST['text'])) { } sql("INSERT INTO blog_tags(post, tag) VALUES " . implode(',', $v)); } - if ($post['draft']) { - header("Location: drafts-blog"); - } else { - header("Location: blog"); - } + header("Location: view-blog-$postid"); die(); } } |