mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user