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
|
// 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…
Add table
Add a link
Reference in a new issue