...
This commit is contained in:
parent
7623de9e2f
commit
58b60f0aa4
@ -1224,7 +1224,10 @@ function mod_move($originBoard, $postID) {
|
|||||||
|
|
||||||
// create the new thread
|
// create the new thread
|
||||||
$newID = post($post);
|
$newID = post($post);
|
||||||
|
|
||||||
|
$op = $post;
|
||||||
|
$op['id'] = $newID;
|
||||||
|
|
||||||
if ($post['has_file']) {
|
if ($post['has_file']) {
|
||||||
// copy image
|
// copy image
|
||||||
foreach ($post['files'] as $i => &$file) {
|
foreach ($post['files'] as $i => &$file) {
|
||||||
@ -1357,14 +1360,14 @@ function mod_move($originBoard, $postID) {
|
|||||||
|
|
||||||
buildIndex();
|
buildIndex();
|
||||||
|
|
||||||
header('Location: ?/' . sprintf($config['board_path'], $originBoard) . $config['dir']['res'] . link_for($post, false, $newboard) .
|
header('Location: ?/' . sprintf($config['board_path'], $originBoard) . $config['dir']['res'] . link_for($op, false, $newboard) .
|
||||||
'#' . $botID, true, $config['redirect_http']);
|
'#' . $botID, true, $config['redirect_http']);
|
||||||
} else {
|
} else {
|
||||||
deletePost($postID);
|
deletePost($postID);
|
||||||
buildIndex();
|
buildIndex();
|
||||||
|
|
||||||
openBoard($targetBoard);
|
openBoard($targetBoard);
|
||||||
header('Location: ?/' . sprintf($config['board_path'], $board['uri']) . $config['dir']['res'] . link_for($post, false, $newboard), true, $config['redirect_http']);
|
header('Location: ?/' . sprintf($config['board_path'], $board['uri']) . $config['dir']['res'] . link_for($op, false, $newboard), true, $config['redirect_http']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user