fixed not working copy or paste of files since r39109

This commit is contained in:
Ralf Becker 2012-05-11 10:30:52 +00:00
parent 5cafed6381
commit cfd8c18939

View File

@ -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'!";
}