Fixed forum post deletion redirections.
This commit is contained in:
parent
ea881e07f1
commit
546f040490
1 changed files with 6 additions and 6 deletions
|
@ -116,7 +116,7 @@ switch ($postMode) {
|
|||
|
||||
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 @@ switch ($postMode) {
|
|||
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 @@ switch ($postMode) {
|
|||
|
||||
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 @@ switch ($postMode) {
|
|||
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 @@ switch ($postMode) {
|
|||
|
||||
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 @@ switch ($postMode) {
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue