src build elFinder-2.1-0476faa

This commit is contained in:
nao-pon
2015-11-23 01:37:07 +09:00
parent 1439891907
commit 7e2470ff5c
7 changed files with 20 additions and 10 deletions
+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 {