summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasiekierka <asiekierka@gmail.com>2013-01-08 07:57:21 +0100
committerasiekierka <asiekierka@gmail.com>2013-01-08 07:57:21 +0100
commite145a0ea890f6973f349d8fb342e38a9be4c649b (patch)
tree3f6d3580c7030efda15a58851926450222f74392
parent9fec3646fa5ef5ec856f0a0b3a7bc9bba03de7fc (diff)
edit bugfixes
-rw-r--r--inc/mod/pages.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 8cabae6d..e96a4640 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1013,6 +1013,11 @@ function mod_edit_post($board, $post) {
$query->bindValue(':body', $_POST['body']);
$query->execute() or error(db_error($query));
+ $thread = $_post['thread'];
+ buildThread($thread ? $thread : $post);
+ modLog("Edited post #{$post}");
+ buildIndex();
+
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
} else {
$args = array(