Redirect after deleting

This commit is contained in:
Savetheinternet 2010-12-16 16:43:45 +11:00
parent 507513d5db
commit 9554c7ecb2

View File

@ -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.");
}