Redirect after deleting
This commit is contained in:
parent
507513d5db
commit
9554c7ecb2
3
mod.php
3
mod.php
@ -192,9 +192,10 @@
|
|||||||
|
|
||||||
// Delete post
|
// Delete post
|
||||||
deletePost($post);
|
deletePost($post);
|
||||||
|
|
||||||
// Rebuild board
|
// Rebuild board
|
||||||
buildIndex();
|
buildIndex();
|
||||||
|
// Redirect to board
|
||||||
|
header('Location: ?/' . sprintf(BOARD_PATH, $boardName) . FILE_INDEX, true, REDIRECT_HTTP);
|
||||||
} else {
|
} else {
|
||||||
error("Page not found.");
|
error("Page not found.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user