Permalink
Browse files

Fixed forum post deletion redirections.

  • Loading branch information...
flashwave committed Feb 6, 2019
1 parent cc7964f commit dd639911cb6baa8ec7f703fe8469c77937afa460
Showing with 6 additions and 6 deletions.
  1. +6 −6 public/forum/post.php
@@ -116,7 +116,7 @@
if (!$isXHR) {
if ($postRequestVerified && isset($_GET['confirm']) && $_GET['confirm'] !== '1') {
header("Location: " . url('forum_post', [
header("Location: " . url('forum-post', [
'post' => $postInfo['post_id'],
'post_fragment' => 'p' . $postInfo['post_id'],
]));
@@ -155,7 +155,7 @@
break;
}
header("Location: " . url('forum_topic', ['topic' => $postInfo['topic_id']]));
header("Location: " . url('forum-topic', ['topic' => $postInfo['topic_id']]));
break;
case 'nuke':
@@ -166,7 +166,7 @@
if (!$isXHR) {
if ($postRequestVerified && isset($_GET['confirm']) && $_GET['confirm'] !== '1') {
header("Location: " . url('forum_post', [
header("Location: " . url('forum-post', [
'post' => $postInfo['post_id'],
'post_fragment' => 'p' . $postInfo['post_id'],
]));
@@ -196,7 +196,7 @@
http_response_code(204);
if (!$isXHR) {
header("Location: " . url('forum_topic', ['topic' => $postInfo['topic_id']]));
header("Location: " . url('forum-topic', ['topic' => $postInfo['topic_id']]));
}
break;
@@ -208,7 +208,7 @@
if (!$isXHR) {
if ($postRequestVerified && isset($_GET['confirm']) && $_GET['confirm'] !== '1') {
header("Location: " . url('forum_post', [
header("Location: " . url('forum-post', [
'post' => $postInfo['post_id'],
'post_fragment' => 'p' . $postInfo['post_id'],
]));
@@ -238,7 +238,7 @@
http_response_code(204);
if (!$isXHR) {
header("Location: " . url('forum_topic', ['topic' => $postInfo['topic_id']]));
header("Location: " . url('forum-topic', ['topic' => $postInfo['topic_id']]));
}
break;

0 comments on commit dd63991

Please sign in to comment.