Browse Source

Redirect after deleting

pull/40/head
Savetheinternet 14 years ago
parent
commit
9554c7ecb2
  1. 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…
Cancel
Save