forked from leftypol/leftypol
pages.php: use link to create hardlinks isntead of full file copy for thread moving
This commit is contained in:
parent
8626ab7571
commit
b0b684bdb1
|
@ -1345,8 +1345,8 @@ function mod_move($originBoard, $postID) {
|
||||||
if ($targetBoard === $originBoard)
|
if ($targetBoard === $originBoard)
|
||||||
error(_('Target and source board are the same.'));
|
error(_('Target and source board are the same.'));
|
||||||
|
|
||||||
// copy() if leaving a shadow thread behind; else, rename().
|
// link() if leaving a shadow thread behind; else, rename().
|
||||||
$clone = $shadow ? 'copy' : 'rename';
|
$clone = $shadow ? 'link' : 'rename';
|
||||||
|
|
||||||
// indicate that the post is a thread
|
// indicate that the post is a thread
|
||||||
$post['op'] = true;
|
$post['op'] = true;
|
||||||
|
@ -1639,7 +1639,7 @@ function mod_merge($originBoard, $postID) {
|
||||||
$op = $post;
|
$op = $post;
|
||||||
$op['id'] = $newID;
|
$op['id'] = $newID;
|
||||||
|
|
||||||
$clone = $shadow ? 'copy' : 'rename';
|
$clone = $shadow ? 'link' : 'rename';
|
||||||
|
|
||||||
if ($post['has_file']) {
|
if ($post['has_file']) {
|
||||||
// copy image
|
// copy image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user