From ddb6cadf66c7f6c26430a14658d232a88bcceb7a Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Fri, 13 Apr 2012 19:26:18 +0200 Subject: Minor changes in navigation. --- lib/blog/edit.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/blog/edit.php') 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(); } } -- cgit v1.2.3