[VD:LocalFileSystem] bugfix, problem of lost source file at fromCopy method

This commit is contained in:
nao-pon
2015-11-23 01:31:50 +09:00
parent 48f710f6d5
commit 568637c8cd
+2 -1
View File
@@ -743,7 +743,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$uri = isset($meta['uri'])? $meta['uri'] : '';
if ($uri && @is_file($uri)) {
fclose($fp);
if (!@rename($uri, $path) && !@copy($uri, $path)) {
$isCmdCopy = ($this->ARGS['cmd'] === 'paste' && empty($this->ARGS['cut']));
if (($isCmdCopy || !@rename($uri, $path)) && !@copy($uri, $path)) {
return false;
}
} else {