summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-16 16:43:45 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-16 16:43:45 +1100
commit9554c7ecb26b7e26cb395532c26845886a5d3541 (patch)
tree5c7549642571ac825f6a4473cf26ba57578243d6 /mod.php
parent507513d5db688ed3231892ec8864ded723ca0e6a (diff)
Redirect after deleting
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 590bd2df..b44f502f 100644
--- a/mod.php
+++ b/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.");
}