forked from leftypol/leftypol
Redirect after deleting
This commit is contained in:
parent
507513d5db
commit
9554c7ecb2
1 changed files with 2 additions and 1 deletions
3
mod.php
3
mod.php
|
@ -192,9 +192,10 @@
|
|||
|
||||
// Delete post
|
||||
deletePost($post);
|
||||
|
||||
// Rebuild board
|
||||
buildIndex();
|
||||
// Redirect to board
|
||||
header('Location: ?/' . sprintf(BOARD_PATH, $boardName) . FILE_INDEX, true, REDIRECT_HTTP);
|
||||
} else {
|
||||
error("Page not found.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue