diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-25 17:47:41 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-25 17:47:41 -0600 |
commit | df9177492976ba968a556a52cc155477652089dc (patch) | |
tree | 0d418e435b5d39325180b201d0dfd4868be42df0 /viewthread.php | |
parent | 2d5cf9448edb1eb6785c1532ccb031b0ba0d1ef0 (diff) |
Reload page after submitting a reply to a thread
Diffstat (limited to 'viewthread.php')
-rw-r--r-- | viewthread.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/viewthread.php b/viewthread.php index 812db0a..e8eda06 100644 --- a/viewthread.php +++ b/viewthread.php @@ -90,6 +90,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { echo 'Thread subject cannot be empty'; } else { create_post($post_content, $current->id, $current->category->id); + header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $current->id); } } ?> |