summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 16:17:20 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 16:17:20 +1100
commit1a90eaf6ce32b1da85a21ef0bc8143986859327d (patch)
tree4bb9d7101ce8dcfc9fb0193cdf7dcb17dd5d6389
parent51cdaaccd1489e7f62d90058d12aa6bceafb2d3f (diff)
Less confusing redirects when posting to the noticeboard
-rw-r--r--mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 4a06dba4..6edd0289 100644
--- a/mod.php
+++ b/mod.php
@@ -558,7 +558,7 @@
$query->bindValue(':body', $_POST['body']);
$query->execute() or error(db_error($query));
- header('Location: ?/noticeboard', true, $config['redirect_http']);
+ header('Location: ?/noticeboard#' . $pdo->lastInsertId(), true, $config['redirect_http']);
} else {
if(hasPermission($config['mod']['noticeboard_post'])) {