summaryrefslogtreecommitdiff
path: root/lib/blog/edit.php
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2012-04-13 19:26:18 +0200
committerNicolas BERNSTEIN <alexis211@gmail.com>2012-04-13 19:26:18 +0200
commitddb6cadf66c7f6c26430a14658d232a88bcceb7a (patch)
tree1fd9e8c8bbe007f182e020354e27041f0952252e /lib/blog/edit.php
parenta535a9e7e017629178b45acc2e96e1d674a0d6fc (diff)
downloadBits-ddb6cadf66c7f6c26430a14658d232a88bcceb7a.tar.gz
Bits-ddb6cadf66c7f6c26430a14658d232a88bcceb7a.zip
Minor changes in navigation.
Diffstat (limited to 'lib/blog/edit.php')
-rw-r--r--lib/blog/edit.php6
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();
}
}