mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 09:44:28 +01:00
Less confusing redirects when posting to the noticeboard
This commit is contained in:
parent
f7d30bd336
commit
ace2bceca6
2
mod.php
2
mod.php
@ -558,7 +558,7 @@
|
|||||||
$query->bindValue(':body', $_POST['body']);
|
$query->bindValue(':body', $_POST['body']);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
|
|
||||||
header('Location: ?/noticeboard', true, $config['redirect_http']);
|
header('Location: ?/noticeboard#' . $pdo->lastInsertId(), true, $config['redirect_http']);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if(hasPermission($config['mod']['noticeboard_post'])) {
|
if(hasPermission($config['mod']['noticeboard_post'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user