mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-26 00:10:55 +01:00
Critical bug: could not move threads/posts with spoiler images, resulted in I/O error
Conflicts: inc/mod/pages.php
This commit is contained in:
parent
d579197c42
commit
5ed4582885
@ -1053,7 +1053,8 @@ function mod_move($originBoard, $postID) {
|
||||
if ($post['has_file']) {
|
||||
// copy image
|
||||
$clone($file_src, sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']);
|
||||
$clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']);
|
||||
if (!in_array($post['thumb'], array('spoiler', 'deleted')))
|
||||
$clone($file_thumb, sprintf($config['board_path'], $board['uri']) . $config['dir']['thumb'] . $post['thumb']);
|
||||
}
|
||||
|
||||
// go back to the original board to fetch replies
|
||||
|
Loading…
Reference in New Issue
Block a user