mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fixed not working copy or paste of files since r39109
This commit is contained in:
parent
5cafed6381
commit
cfd8c18939
@ -623,9 +623,6 @@ function force_download(_action, _senders)
|
||||
}
|
||||
$errs = $dirs = $files = 0;
|
||||
|
||||
// Dialogs / options
|
||||
list($action, $settings) = explode('_', $action, 2);
|
||||
|
||||
switch($action)
|
||||
{
|
||||
case 'mail':
|
||||
@ -735,12 +732,17 @@ function force_download(_action, _senders)
|
||||
$ret = lang('%1 errors linking (%2)!',$errs,$ret);
|
||||
}
|
||||
return $ret." egw_vfs::symlink('$to','$path')";
|
||||
case 'document':
|
||||
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document'];
|
||||
$document_merge = new filemanager_merge(egw_vfs::decodePath($dir));
|
||||
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']);
|
||||
$failed = count($selected);
|
||||
return false;
|
||||
default:
|
||||
list($action, $settings) = explode('_', $action, 2);
|
||||
switch($action)
|
||||
{
|
||||
case 'document':
|
||||
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document'];
|
||||
$document_merge = new filemanager_merge(egw_vfs::decodePath($dir));
|
||||
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']);
|
||||
$failed = count($selected);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return "Unknown action '$action'!";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user