mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Merge pull request #759 from Zankaria/fake-copy
Use hardlinks instead of copying the file
This commit is contained in:
commit
d990c344d4
@ -1342,8 +1342,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user