From e145a0ea890f6973f349d8fb342e38a9be4c649b Mon Sep 17 00:00:00 2001 From: asiekierka Date: Tue, 8 Jan 2013 07:57:21 +0100 Subject: [PATCH] edit bugfixes --- inc/mod/pages.php | 5 +++++ 1 file changed, 5 insertions(+) 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(