summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 13:46:34 +0100
committerczaks <marcin@6irc.net>2015-03-10 13:46:34 +0100
commit58b60f0aa4ef14589315a66fcf58d749928483c7 (patch)
tree89fd2f649ab17e5d3bcdd7affcbbb32dfc1e2632 /inc/mod
parent7623de9e2fe8424f35be70cddb9cf68254e49e3e (diff)
...
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 79d1bf51..2b7de134 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1224,7 +1224,10 @@ function mod_move($originBoard, $postID) {
// create the new thread
$newID = post($post);
-
+
+ $op = $post;
+ $op['id'] = $newID;
+
if ($post['has_file']) {
// copy image
foreach ($post['files'] as $i => &$file) {
@@ -1357,14 +1360,14 @@ function mod_move($originBoard, $postID) {
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']);
} else {
deletePost($postID);
buildIndex();
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']);
}
}