mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:01:36 +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;
|
$errs = $dirs = $files = 0;
|
||||||
|
|
||||||
// Dialogs / options
|
|
||||||
list($action, $settings) = explode('_', $action, 2);
|
|
||||||
|
|
||||||
switch($action)
|
switch($action)
|
||||||
{
|
{
|
||||||
case 'mail':
|
case 'mail':
|
||||||
@ -735,12 +732,17 @@ function force_download(_action, _senders)
|
|||||||
$ret = lang('%1 errors linking (%2)!',$errs,$ret);
|
$ret = lang('%1 errors linking (%2)!',$errs,$ret);
|
||||||
}
|
}
|
||||||
return $ret." egw_vfs::symlink('$to','$path')";
|
return $ret." egw_vfs::symlink('$to','$path')";
|
||||||
case 'document':
|
default:
|
||||||
if (!$settings) $settings = $GLOBALS['egw_info']['user']['preferences']['filemanager']['default_document'];
|
list($action, $settings) = explode('_', $action, 2);
|
||||||
$document_merge = new filemanager_merge(egw_vfs::decodePath($dir));
|
switch($action)
|
||||||
$msg = $document_merge->download($settings, $selected, '', $GLOBALS['egw_info']['user']['preferences']['filemanager']['document_dir']);
|
{
|
||||||
$failed = count($selected);
|
case 'document':
|
||||||
return false;
|
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'!";
|
return "Unknown action '$action'!";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user