[VD:LocalFileSystem] fix #2009 corrention of an option keepTimestamp(upload)

As for chunked `upload`, fixed time stamp was always keeps irrespective of setting, so we fixed it.
This commit is contained in:
nao-pon
2017-05-16 22:19:24 +09:00
parent c3e931d3c6
commit ce49d6e937
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -908,8 +908,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
return false;
}
// keep timestamp on upload
if ($mtime && $this->ARGS['cmd'] === 'upload' && isset($this->options['keepTimestamp']['upload'])) {
touch($path, $mtime);
if ($mtime && $this->ARGS['cmd'] === 'upload') {
touch($path, isset($this->options['keepTimestamp']['upload'])? $mtime : time());
}
// re-create the source file for remove processing of paste command
$isCmdPaste && !$isCmdCopy && touch($uri);