|
|
|
|
@ -5324,12 +5324,10 @@ class DocumentManager |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Copy files to users myfiles |
|
|
|
|
if (api_get_setting('allow_social_tool') === 'true' && |
|
|
|
|
api_get_setting('users_copy_files') === 'true' && |
|
|
|
|
!api_is_anonymous() |
|
|
|
|
if (api_get_setting('allow_my_files') === 'true' && |
|
|
|
|
api_get_setting('users_copy_files') === 'true' |
|
|
|
|
) { |
|
|
|
|
$copy_myfiles_link = ($filetype == 'file') ? api_get_self() . '?' . api_get_cidreq() . '&action=copytomyfiles&id=' . $document_data['id'] : api_get_self() . '?' . api_get_cidreq(); |
|
|
|
|
|
|
|
|
|
if ($filetype == 'file') { |
|
|
|
|
|
|
|
|
|
$copy_to_myfiles = '<a href="' . $copy_myfiles_link . '" style="float:right"' . $prevent_multiple_click . '>' . |
|
|
|
|
|